Skip to content
Snippets Groups Projects
Commit ac20f9bd authored by James Kirsch's avatar James Kirsch Committed by Mark Goddard
Browse files

Fix glance backend TLS configuration task

Fix glance configuration task to create the backend PEM only on hosts with
glance service enabled.

Change-Id: I641c51761a99828854aafcc1e7354d6932d86659
parent c3bda3f6
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
- kolla_copy_ca_into_containers | bool or glance_enable_tls_backend | bool - kolla_copy_ca_into_containers | bool or glance_enable_tls_backend | bool
- name: Creating TLS backend PEM File - name: Creating TLS backend PEM File
vars:
glance_tls_proxy: "{{ glance_services['glance-tls-proxy'] }}"
assemble: assemble:
src: "{{ node_config_directory }}/glance-tls-proxy/" src: "{{ node_config_directory }}/glance-tls-proxy/"
dest: "{{ node_config_directory }}/glance-tls-proxy/glance-cert-and-key.pem" dest: "{{ node_config_directory }}/glance-tls-proxy/glance-cert-and-key.pem"
...@@ -48,7 +50,8 @@ ...@@ -48,7 +50,8 @@
remote_src: true remote_src: true
become: true become: true
when: when:
- glance_enable_tls_backend | bool - glance_tls_proxy.enabled | bool
- glance_tls_proxy.host_in_groups | bool
- name: Copying over config.json files for services - name: Copying over config.json files for services
template: template:
......
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