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] - inventory_hostname in groups[item.value.group]
- kolla_copy_ca_into_containers | bool - kolla_copy_ca_into_containers | bool
with_dict: "{{ aodh_services }}" with_dict: "{{ aodh_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over config.json files for services - name: Copying over config.json files for services
template: template:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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