Merge "Configure glance ceph during upgrade and genconfig"
This commit is contained in:
commit
8818d10ec0
@ -1,4 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
- 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
|
- name: Ensuring config directories exist
|
||||||
file:
|
file:
|
||||||
path: "{{ node_config_directory }}/{{ item.key }}"
|
path: "{{ node_config_directory }}/{{ item.key }}"
|
||||||
|
@ -1,23 +1,8 @@
|
|||||||
---
|
---
|
||||||
- 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
|
- include: register.yml
|
||||||
when: inventory_hostname in groups['glance-api']
|
when: inventory_hostname in groups['glance-api']
|
||||||
|
|
||||||
- include: config.yml
|
- include: config.yml
|
||||||
when: inventory_hostname in groups['glance-api'] or
|
|
||||||
inventory_hostname in groups['glance-registry']
|
|
||||||
|
|
||||||
- include: clone.yml
|
- include: clone.yml
|
||||||
when:
|
when:
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ node_config_directory }}/glance-api/"
|
dest: "{{ node_config_directory }}/glance-api/"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
|
when: inventory_hostname in groups['glance-api']
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ node_custom_config }}/glance/ceph*"
|
- "{{ node_custom_config }}/glance/ceph*"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user