Merge pull request #9 from oneswig/glance-extended-config

Add support for a free-form configuration directory for glance
This commit is contained in:
Stig Telfer 2017-09-04 11:21:11 +01:00 committed by GitHub
commit 6221cb2daf
2 changed files with 11 additions and 0 deletions

View File

@ -183,4 +183,5 @@
kolla_extra_neutron_ml2: "{{ kolla_extra_config.neutron_ml2 | default }}"
kolla_extra_nova: "{{ kolla_extra_config.nova | default }}"
kolla_extra_sahara: "{{ kolla_extra_config.sahara | default }}"
kolla_extra_glance_path: "{{ kayobe_config_path }}/kolla/config/glance"
kolla_extra_fluentd_output_path: "{{ kayobe_config_path }}/kolla/config/fluentd/output"

View File

@ -9,6 +9,7 @@
- { name: ironic, enabled: "{{ kolla_enable_ironic }}" }
- { name: neutron, enabled: "{{ kolla_enable_neutron }}" }
- { name: swift, enabled: "{{ kolla_enable_swift }}" }
- { name: glance, enabled: "{{ kolla_enable_glance }}" }
when: "{{ item.enabled | bool }}"
- name: Ensure the Kolla OpenStack configuration files exist
@ -30,6 +31,15 @@
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
when: "{{ item.enabled | bool }}"
- name: Ensure extra glance configuration files exist
template:
src: "{{ item }}"
dest: "{{ kolla_node_custom_config_path }}/glance/{{ item | basename }}"
mode: 0640
with_fileglob:
- "{{ kolla_extra_glance_path }}/*"
when: "{{ kolla_extra_glance_path != None }}"
- name: Ensure extra fluentd output configuration files exist
template:
src: "{{ item }}"