From 2bcbd452e68253d554697f742c05febb06fc55dd Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Mon, 23 Jul 2018 13:38:04 +0200 Subject: [PATCH] Copy the required ceph.xml. --- ceph.xml | 6 ++++++ set_ceph_secrets.yml | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ceph.xml diff --git a/ceph.xml b/ceph.xml new file mode 100644 index 0000000..e83c14b --- /dev/null +++ b/ceph.xml @@ -0,0 +1,6 @@ + +d0db6ba7-a0c9-4da6-b0bc-aa7846325333 + +client.volumes secret + + diff --git a/set_ceph_secrets.yml b/set_ceph_secrets.yml index 724a9ae..efb8c32 100644 --- a/set_ceph_secrets.yml +++ b/set_ceph_secrets.yml @@ -3,11 +3,15 @@ - hosts: nova-compute become: true tasks: + - copy: + src: ceph.xml + dest: /root/ceph.xml + mode: 0644 - name: include secrets include_vars: file: secrets.yml name: secrets - - command: virsh secret-define --file ceph.xml + - command: virsh secret-define --file /root/ceph.xml - command: > virsh secret-set-value --secret d0db6ba7-a0c9-4da6-b0bc-aa7846325333 --base64 {{ secrets['ceph_client_volumes_key'] }}