Created
December 19, 2020 03:57
-
-
Save mnaser/17b236d4a1ad6b42df95b01f2e37e5a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SECRET_UUID=$(virsh secret-list | grep 'client.cinder' | cut -d' ' -f2) | |
SECRET_VALUE=$(virsh secret-get-value ${SECRET_UUID}) | |
virsh secret-undefine ${SECRET_UUID} | |
virsh secret-define --file /dev/stdin <<EOF | |
<secret ephemeral='no' private='no'> | |
<uuid>457eb676-33da-42ec-9a8c-9293d545c337</uuid> | |
<usage type='ceph'> | |
<name>client.cinder secret</name> | |
</usage> | |
</secret> | |
EOF | |
virsh secret-set-value --secret 457eb676-33da-42ec-9a8c-9293d545c337 --base64 ${SECRET_VALUE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment