Merge "Allow to distribute custom key with the role"

This commit is contained in:
Zuul 2023-10-10 11:34:38 +00:00 committed by Gerrit Code Review
commit 43c9071f4f
3 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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