Merge "Allow to distribute custom key with the role"
This commit is contained in:
commit
43c9071f4f
|
@ -79,6 +79,7 @@
|
|||
command: virsh secret-get-value {{ nova_ceph_client_uuid }}
|
||||
when:
|
||||
- inventory_hostname in groups.nova_compute
|
||||
- ceph_nova_secret is defined
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
register: libvirt_nova_set
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
stdout: "{{ (ceph_client_keys[nova_ceph_client] | regex_search('.*^\\s*key\\s*=\\s*(.*)$.*', '\\1', multiline=True))[0] }}"
|
||||
when:
|
||||
- inventory_hostname in groups.nova_compute
|
||||
- nova_ceph_client in ceph_client_filtered_clients | map(attribute='name') | list
|
||||
delegate_to: localhost
|
||||
tags:
|
||||
- always
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
command: ceph auth get-key client.{{ nova_ceph_client }} --cluster {{ ceph_cluster_name }}
|
||||
when:
|
||||
- inventory_hostname in groups.nova_compute
|
||||
- nova_ceph_client in ceph_client_filtered_clients | map(attribute='name') | list
|
||||
changed_when: false
|
||||
delegate_to: '{{ ceph_mon_host }}'
|
||||
register: ceph_nova_secret
|
||||
|
|
Loading…
Reference in New Issue