Skip to content
Snippets Groups Projects
Commit 7aef93a0 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix cyborg api failed to load api-paste.ini file"

parents 6ae4bfb5 a374ff9f
No related branches found
No related tags found
No related merge requests found
......@@ -82,28 +82,18 @@
notify:
- Restart {{ item.key }} container
- name: Checking whether cyborg-api-paste.ini file exists
vars:
service: "{{ cyborg_services['cyborg-api'] }}"
stat:
path: "{{ node_custom_config }}/cyborg/cyborg-api-paste.ini"
delegate_to: localhost
run_once: True
register: check_cyborg_api_paste_ini
when:
- service.enabled | bool
- name: Copying over cyborg-api-paste.ini
vars:
service: "{{ cyborg_services['cyborg-api'] }}"
template:
src: "{{ node_custom_config }}/cyborg/cyborg-api-paste.ini"
merge_configs:
sources:
- "{{ role_path }}/templates/cyborg-api-paste.ini.j2"
- "{{ node_custom_config }}/cyborg/cyborg-api-paste.ini"
dest: "{{ node_config_directory }}/cyborg-api/api-paste.ini"
mode: "0660"
when:
- inventory_hostname in groups['cyborg-api']
- service.enabled | bool
- check_cyborg_api_paste_ini.stat.exists
notify:
- Restart cyborg-api container
......
---
fixes:
- |
Fix cyborg api container failed to load api paste file. For details
please see `bug 1874028
<https://bugs.launchpad.net/kolla-ansible/+bug/1874028>`__.
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