mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
b09d85d7ab
A set of scripts used to bring up an OpenStack instance on one site, connect a ceph cluster, add pools to store OpenStack glance images, cinder volumes, nova vms, and cinder backups on rbd, and bring up a nova compute node.
19 lines
410 B
Bash
Executable File
19 lines
410 B
Bash
Executable File
#!/bin/bash -f
|
|
|
|
#
|
|
# Generate a libvirt secret on the Openstack node.
|
|
#
|
|
openstack_node=${1}
|
|
uuid=`uuidgen`
|
|
cat > secret.xml <<EOF
|
|
<secret ephemeral='no' private='no'>
|
|
<uuid>${uuid}</uuid>
|
|
<usage type='ceph'>
|
|
<name>client.cinder secret</name>
|
|
</usage>
|
|
</secret>
|
|
EOF
|
|
sudo virsh secret-define --file secret.xml
|
|
sudo virsh secret-set-value --secret ${uuid} --base64 $(cat client.cinder.key)
|
|
echo ${uuid}
|