Compare commits
No commits in common. "master" and "9f89ebe3fc53c1c12a16ced565f9e709744517c0" have entirely different histories.
master
...
9f89ebe3fc
@ -9,3 +9,4 @@ rbd_secret_key
|
|||||||
Example to create ceph creds:
|
Example to create ceph creds:
|
||||||
ceph auth get-or-create client.openstack -o ceph.client.openstack.keyring
|
ceph auth get-or-create client.openstack -o ceph.client.openstack.keyring
|
||||||
ceph auth caps client.openstack mon 'allow r' osd "allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rx pool=images"
|
ceph auth caps client.openstack mon 'allow r' osd "allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rx pool=images"
|
||||||
|
|
||||||
|
@ -9,18 +9,18 @@
|
|||||||
template:
|
template:
|
||||||
src: templates/rbd_secret.xml.j2
|
src: templates/rbd_secret.xml.j2
|
||||||
dest: /tmp/secret.xml
|
dest: /tmp/secret.xml
|
||||||
when: virsh_secret_result is defined and virsh_secret_result.rc != 0
|
# when: virsh_secret_result.rc != 0
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
tags: libvirt-secret
|
tags: libvirt-secret
|
||||||
|
|
||||||
- name: Define libvirt RBD secret
|
- name: Define libvirt RBD secret
|
||||||
command: virsh secret-define /tmp/secret.xml
|
command: virsh secret-define /tmp/secret.xml
|
||||||
when: virsh_secret_result is defined and virsh_secret_result.rc != 0
|
# when: virsh_secret_result.rc != 0
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
tags: libvirt-secret
|
tags: libvirt-secret
|
||||||
|
|
||||||
- name: Set libvirt RBD secret
|
- name: Set libvirt RBD secret
|
||||||
command: virsh secret-set-value {{ rbd_secret_uuid }} {{ rbd_secret_key }}
|
command: virsh secret-set-value {{ rbd_secret_uuid }} {{ rbd_secret_key }}
|
||||||
when: virsh_secret_result is defined and virsh_secret_result.rc != 0
|
# when: virsh_secret_result.rc != 0
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
tags: libvirt-secret
|
tags: libvirt-secret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user