Merge "[goal] Deprecate the JSON formatted policy file"
This commit is contained in:
commit
4c2ea1c3c4
@ -23,6 +23,15 @@
|
|||||||
listen:
|
listen:
|
||||||
- "venv changed"
|
- "venv changed"
|
||||||
|
|
||||||
|
# NOTE (noonedeadpunk): Remove this task after Xena release
|
||||||
|
- name: Remove obsoleted policy.json
|
||||||
|
file:
|
||||||
|
path: "/etc/ironic/policy.json"
|
||||||
|
state: absent
|
||||||
|
listen:
|
||||||
|
- "Restart ironic services"
|
||||||
|
- "venv changed"
|
||||||
|
|
||||||
- name: Restart tftpd
|
- name: Restart tftpd
|
||||||
service:
|
service:
|
||||||
name: "{{ ironic_tftpd_service_name }}"
|
name: "{{ ironic_tftpd_service_name }}"
|
||||||
|
@ -120,12 +120,27 @@
|
|||||||
- Restart ironic services
|
- Restart ironic services
|
||||||
- Restart uwsgi services
|
- Restart uwsgi services
|
||||||
|
|
||||||
- name: Implement policy.json
|
- name: Implement policy.yaml
|
||||||
copy:
|
config_template:
|
||||||
content: "{{ ironic_policy_overrides | to_nice_json }}"
|
content: "{{ ironic_policy_overrides }}"
|
||||||
dest: "/etc/ironic/policy.json"
|
dest: "/etc/ironic/policy.yaml"
|
||||||
|
owner: "{{ ironic_system_user_name }}"
|
||||||
|
group: "{{ ironic_system_group_name }}"
|
||||||
|
mode: "0644"
|
||||||
|
config_type: yaml
|
||||||
when:
|
when:
|
||||||
- ironic_policy_overrides != {}
|
- ironic_policy_overrides | length > 0
|
||||||
|
tags:
|
||||||
|
- ironic-policy-override
|
||||||
|
|
||||||
|
- name: Remove legacy policy.yaml file
|
||||||
|
file:
|
||||||
|
path: "/etc/ironic/policy.yaml"
|
||||||
|
state: absent
|
||||||
|
when:
|
||||||
|
- ironic_policy_overrides | length == 0
|
||||||
|
tags:
|
||||||
|
- ironic-policy-override
|
||||||
|
|
||||||
- name: Copy rootwrap filters
|
- name: Copy rootwrap filters
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user