Correct bug with libvirt permissions

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:20 -04:00
parent 958d2525da
commit 935b4c48ae
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,3 @@
---
- 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*'
command: ceph auth get-or-create client.libvirt mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=*'

View File

@ -11,6 +11,12 @@
- libjemalloc2
state: latest
- name: add libvirt user to ceph group
user:
name: libvirt-qemu
groups: ceph
append: yes
- name: install libvirt configuration
template:
src: libvirt/{{ item }}.j2