Improve libvirt key handling
This commit is contained in:
parent
37506b981f
commit
9d01d5d3cb
|
@ -20,12 +20,16 @@
|
||||||
- ceph-secret.xml
|
- ceph-secret.xml
|
||||||
notify: restart libvirtd
|
notify: restart libvirtd
|
||||||
|
|
||||||
|
- name: get ceph libvirt secret key
|
||||||
|
command: ceph auth get-key client.libvirt
|
||||||
|
register: libvirt_key
|
||||||
|
|
||||||
- name: define ceph secret
|
- name: define ceph secret
|
||||||
command: virsh secret-define /etc/libvirt/ceph-secret.xml
|
command: virsh secret-define /etc/libvirt/ceph-secret.xml
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: set ceph secret value
|
- name: set ceph libvirt secret value
|
||||||
command: virsh secret-set-value --secret {{ ceph_storage_secret_uuid }} --base64 {{ ceph_storage_secret_key }}
|
command: virsh secret-set-value --secret {{ ceph_storage_secret_uuid }} --base64 {{ libvirt_key.stdout }}
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: configure libvirt for listening
|
- name: configure libvirt for listening
|
||||||
|
|
Loading…
Reference in New Issue