c70d806666
When Nova, Glance, or Cinder are deployed alongside an external Ceph deployment handlers will fail to trigger if keyring files are updated, which results in the containers not being restarted. This change adds the missing 'when' conditions for nova-libvirt, nova-compute, cinder-volume, cinder-backup, and glance-api containers. Change-Id: I8e183aac9a72e7a7210f7edc7cdcbaedd4fbcaa9
25 lines
658 B
YAML
25 lines
658 B
YAML
---
|
|
- name: Copy over ceph files
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: "{{ node_config_directory }}/glance-api/"
|
|
mode: "0660"
|
|
become: true
|
|
register: glance_api_ceph_files
|
|
when: inventory_hostname in groups['glance-api']
|
|
with_fileglob:
|
|
- "{{ node_custom_config }}/glance/ceph*"
|
|
notify:
|
|
- Restart glance-api container
|
|
|
|
- name: Ensuring config directory has correct owner and permission
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
recurse: yes
|
|
owner: "{{ config_owner_user }}"
|
|
group: "{{ config_owner_group }}"
|
|
become: true
|
|
when: inventory_hostname in groups['glance-api']
|
|
with_items:
|
|
- "glance-api"
|