Skip to content
Snippets Groups Projects
Commit fc4327d9 authored by nikparasyr's avatar nikparasyr
Browse files

Allow overwrite of placement-api wsgi config

Use with_first_found on placement-api-wsgi to allow
overwrite from users and keep consistency with other
roles.

Change-Id: I11c84db6df1bb5be61db5b6b0adf8c160a2bd931
Closes-Bug: #1898766
parent e65c9b4d
No related branches found
No related tags found
No related merge requests found
...@@ -73,12 +73,16 @@ ...@@ -73,12 +73,16 @@
vars: vars:
service: "{{ placement_services['placement-api'] }}" service: "{{ placement_services['placement-api'] }}"
template: template:
src: "placement-api-wsgi.conf.j2" src: "{{ item }}"
dest: "{{ node_config_directory }}/placement-api/placement-api-wsgi.conf" dest: "{{ node_config_directory }}/placement-api/placement-api-wsgi.conf"
mode: "0660" mode: "0660"
when: when:
- inventory_hostname in groups[service.group] - inventory_hostname in groups[service.group]
- service.enabled | bool - service.enabled | bool
with_first_found:
- "{{ node_custom_config }}/placement/{{ inventory_hostname }}/placement-api-wsgi.conf"
- "{{ node_custom_config }}/placement/placement-api-wsgi.conf"
- "placement-api-wsgi.conf.j2"
notify: notify:
- Restart placement-api container - Restart placement-api container
......
---
fixes:
- |
Add with_first_found on placement for placement-api wsgi configuration
to allow overwrite from users.
`LP#1898766 <https://launchpad.net/bugs/1898766>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment