Skip to content
Snippets Groups Projects
Commit 6a12fd8a authored by Jeffrey Zhang's avatar Jeffrey Zhang
Browse files

Pull cinder cephx keyring only when enable_cinder is true in nova

cinder_backup_ceph is true in default when enable_ceph is true.

Change-Id: Ic3cbd041a784610323cda4419acb6702f2aa35c1
Closes-Bug: #1699658
parent 065b64fe
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
register: cinder_cephx_raw_key register: cinder_cephx_raw_key
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
when: when:
- enable_cinder | bool
- cinder_backend_ceph | bool - cinder_backend_ceph | bool
changed_when: False changed_when: False
run_once: True run_once: True
...@@ -74,7 +75,7 @@ ...@@ -74,7 +75,7 @@
enabled: true enabled: true
- uuid: "{{ cinder_rbd_secret_uuid }}" - uuid: "{{ cinder_rbd_secret_uuid }}"
name: client.cinder secret name: client.cinder secret
enabled: "{{ cinder_backend_ceph | bool }}" enabled: "{{ enable_cinder | bool and cinder_backend_ceph | bool}}"
- name: Pushing secrets key for libvirt - name: Pushing secrets key for libvirt
copy: copy:
...@@ -89,5 +90,5 @@ ...@@ -89,5 +90,5 @@
content: "{{ nova_cephx_raw_key.stdout }}" content: "{{ nova_cephx_raw_key.stdout }}"
enabled: true enabled: true
- uuid: "{{ cinder_rbd_secret_uuid }}" - uuid: "{{ cinder_rbd_secret_uuid }}"
content: "{{ cinder_cephx_raw_key.stdout }}" content: "{{ cinder_cephx_raw_key.stdout|default('') }}"
enabled: "{{ cinder_backend_ceph | bool }}" enabled: "{{ enable_cinder | bool and cinder_backend_ceph | bool}}"
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