Skip to content
Snippets Groups Projects
Commit 2dbfe74f authored by Mark Goddard's avatar Mark Goddard
Browse files

Configure glance ceph during upgrade and genconfig

Previously the glance ceph backend was only being configured during
the deploy and reconfigure commands. This change ensures that it is
configured during the upgrade and genconfig commands as well.

Some of the related host/group selection logic has been cleaned up,
as it was a little tautolgous.

Change-Id: Ibfc2bfaaf2e24fb3a0697925e7723794046787fa
Closes-Bug: #1728060
parent 23582ec5
No related branches found
No related tags found
No related merge requests found
---
- include: ceph.yml
when:
- enable_ceph | bool
- glance_backend_ceph | bool
- include: external_ceph.yml
when:
- enable_ceph | bool == False
- glance_backend_ceph | bool
- name: Ensuring config directories exist
file:
path: "{{ node_config_directory }}/{{ item.key }}"
......
---
- include: ceph.yml
when:
- (enable_ceph | bool) and (glance_backend_ceph | bool)
- inventory_hostname in groups['ceph-mon'] or
inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: external_ceph.yml
when:
- (enable_ceph | bool == False) and (glance_backend_ceph | bool)
- inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: register.yml
when: inventory_hostname in groups['glance-api']
- include: config.yml
when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: clone.yml
when:
......
......@@ -11,6 +11,7 @@
src: "{{ item }}"
dest: "{{ node_config_directory }}/glance-api/"
mode: "0660"
when: inventory_hostname in groups['glance-api']
with_fileglob:
- "{{ node_custom_config }}/glance/ceph*"
......
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