use policy.yaml instead of policy.json due to latest change on gnocchi

check the config
Change-Id: If05936d25db3329b4204172f3b800ddf3417b9b7

Change-Id: Ie11f31e6e4a0ee64e6e191820ef9a00e72826a96
This commit is contained in:
somayeh_hajiahmadi 2023-09-12 18:25:33 +03:30 committed by Dmitriy Rabotyagov
parent 069d0498f6
commit 661119895a
2 changed files with 13 additions and 4 deletions

View File

@ -43,8 +43,8 @@
#
- name: Copy new policy file into place
copy:
src: "/etc/gnocchi/policy.json-{{ gnocchi_venv_tag }}"
dest: "/etc/gnocchi/policy.json"
src: "/etc/gnocchi/policy.yaml-{{ gnocchi_venv_tag }}"
dest: "/etc/gnocchi/policy.yaml"
owner: "root"
group: "{{ gnocchi_system_group_name }}"
mode: "0640"

View File

@ -41,10 +41,19 @@
config_overrides: "{{ gnocchi_api_paste_ini_overrides }}"
config_type: "ini"
content: "{{ gnocchi_api_paste_user_content | default(gnocchi_api_paste_default_content, true) }}"
- dest: "/etc/gnocchi/policy.json-{{ gnocchi_venv_tag }}"
- dest: "/etc/gnocchi/policy.yaml-{{ gnocchi_venv_tag }}"
config_overrides: "{{ gnocchi_policy_overrides }}"
config_type: "json"
config_type: "yaml"
content: "{{ gnocchi_policy_user_content | default(gnocchi_policy_default_content, true) }}"
notify:
- Restart gnocchi services
- Restart uwsgi services
- name: Remove legacy policy.yaml file
file:
path: "/etc/gnocchi/policy.yaml"
state: absent
when:
- gnocchi_policy_overrides | length == 0
tags:
- gnocchi-policy-override