From ef0b1a8c5ef99e6f1c194d0c64fb9afe6ca834b0 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:19 -0400 Subject: [PATCH] Add creation of libvirt client key --- roles/pvc/tasks/bootstrap_ceph.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/pvc/tasks/bootstrap_ceph.yml b/roles/pvc/tasks/bootstrap_ceph.yml index 004b73c..824d552 100644 --- a/roles/pvc/tasks/bootstrap_ceph.yml +++ b/roles/pvc/tasks/bootstrap_ceph.yml @@ -154,3 +154,7 @@ name: ceph-mon@{{ ansible_hostname }} state: started enabled: yes + +- name: create Libvirt keyring + command: ceph auth get-or-create client.libvirt mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=pvc*' + run_once: yes