From d26c555ce0c9fd67804040345361a2d27e637a26 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 11 Jun 2019 13:25:31 -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