Add notify restart container when cert changed

When change the cert file in /etc/kolla/certificate/.
The certificate in the container has not changed.
So I think can use kolla-ansible deploy when certificate is
changed. restart <container>

Partially-Implements: blueprint custom-cacerts

Change-Id: Iaac6f37e85ffdc0352e8062ae5049cc9a6b3db26
Signed-off-by: yj.bai <bai.yongjun@99cloud.net>
This commit is contained in:
yj.bai 2020-03-10 11:38:08 +08:00
parent 15afa61397
commit d3cc2f670e
48 changed files with 96 additions and 0 deletions

View File

@ -56,6 +56,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ aodh_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -58,6 +58,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ barbican_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ blazar_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -147,6 +147,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ ceilometer_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -48,6 +48,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ cinder_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -66,6 +66,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ cloudkitty_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -62,6 +62,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ common_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ congress_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -56,6 +56,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ cyborg_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ designate_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -31,6 +31,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ elasticsearch_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ freezer_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -46,6 +46,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ glance_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -46,6 +46,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ gnocchi_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -30,6 +30,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ grafana_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files
template:

View File

@ -42,6 +42,8 @@
- item.value.enabled | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ heat_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
become: true

View File

@ -49,6 +49,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ ironic_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ karbor_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -49,6 +49,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ keystone_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ kibana_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ kuryr_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ magnum_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -47,6 +47,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ manila_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ mistral_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ monasca_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ murano_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -58,6 +58,8 @@
- item.value.host_in_groups | bool
- kolla_copy_ca_into_containers | bool
with_dict: "{{ neutron_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
become: true

View File

@ -35,6 +35,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ nova_cell_services }}"
notify:
- "Restart {{ item.key }} container"
- include_tasks: external_ceph.yml
when:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ nova_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
become: true

View File

@ -56,6 +56,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ octavia_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ panko_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ placement_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
become: true

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ prometheus_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files
become: true

View File

@ -47,6 +47,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ qinling_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ rally_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ sahara_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ searchlight_config_jsons }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ senlin_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ skydive_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over default config.json files
template:

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ solum_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -39,6 +39,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ swift_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ tacker_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ telegraf_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over default config.json files
template:

View File

@ -23,6 +23,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ tempest_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ trove_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ vitrage_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ watcher_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template:

View File

@ -42,6 +42,8 @@
- inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool
with_dict: "{{ zun_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services
template: