Merge "Karbor services restarting issue on conf update"
This commit is contained in:
commit
5869030d7f
@ -18,7 +18,6 @@
|
||||
- service.enabled | bool
|
||||
- config_json.changed | bool
|
||||
or karbor_conf.changed | bool
|
||||
or openstack_infra_conf.changed | bool
|
||||
or karbor_api_container.changed | bool
|
||||
|
||||
- name: Restart karbor-protection container
|
||||
@ -62,5 +61,4 @@
|
||||
- service.enabled | bool
|
||||
- config_json.changed | bool
|
||||
or karbor_conf.changed | bool
|
||||
or openstack_infra_conf.changed | bool
|
||||
or karbor_operationengine_container.changed | bool
|
||||
|
@ -48,19 +48,17 @@
|
||||
|
||||
- name: Copying over openstack-infra.conf
|
||||
vars:
|
||||
service: "{{ item.key }}"
|
||||
service_name: 'karbor-protection'
|
||||
service: "{{ karbor_services[service_name] }}"
|
||||
template:
|
||||
src: "providers.d/openstack-infra.conf.j2"
|
||||
dest: "{{ node_config_directory }}/{{ item.key }}/providers.d/openstack-infra.conf"
|
||||
dest: "{{ node_config_directory }}/{{ service_name }}/providers.d/openstack-infra.conf"
|
||||
register: openstack_infra_conf
|
||||
when:
|
||||
- inventory_hostname in groups[item.value.group]
|
||||
- item.value.enabled | bool
|
||||
with_dict: "{{ karbor_services }}"
|
||||
- inventory_hostname in groups[service.group]
|
||||
- service.enabled | bool
|
||||
notify:
|
||||
- Restart karbor-api container
|
||||
- Restart karbor-protection container
|
||||
- Restart karbor-operationengine container
|
||||
|
||||
- name: Check karbor containers
|
||||
kolla_docker:
|
||||
|
Loading…
Reference in New Issue
Block a user