Copy the required ceph.xml.
This commit is contained in:
parent
1f1679fef1
commit
2bcbd452e6
6
ceph.xml
Normal file
6
ceph.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<secret ephemeral="no" private="no">
|
||||||
|
<uuid>d0db6ba7-a0c9-4da6-b0bc-aa7846325333</uuid>
|
||||||
|
<usage type="ceph">
|
||||||
|
<name>client.volumes secret</name>
|
||||||
|
</usage>
|
||||||
|
</secret>
|
@ -3,11 +3,15 @@
|
|||||||
- hosts: nova-compute
|
- hosts: nova-compute
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
|
- copy:
|
||||||
|
src: ceph.xml
|
||||||
|
dest: /root/ceph.xml
|
||||||
|
mode: 0644
|
||||||
- name: include secrets
|
- name: include secrets
|
||||||
include_vars:
|
include_vars:
|
||||||
file: secrets.yml
|
file: secrets.yml
|
||||||
name: secrets
|
name: secrets
|
||||||
- command: virsh secret-define --file ceph.xml
|
- command: virsh secret-define --file /root/ceph.xml
|
||||||
- command: >
|
- command: >
|
||||||
virsh secret-set-value --secret d0db6ba7-a0c9-4da6-b0bc-aa7846325333
|
virsh secret-set-value --secret d0db6ba7-a0c9-4da6-b0bc-aa7846325333
|
||||||
--base64 {{ secrets['ceph_client_volumes_key'] }}
|
--base64 {{ secrets['ceph_client_volumes_key'] }}
|
||||||
|
Loading…
Reference in New Issue
Block a user