Merge pull request #650 from stpierre/rbd-client-directory-owner

Make RBD client directory owner/group configurable
pull/653/head
Leseb 2016-03-25 16:41:31 +01:00
commit e40e0f8950
3 changed files with 8 additions and 4 deletions

View File

@ -181,7 +181,9 @@ dummy:
#rbd_cache: "true"
#rbd_cache_writethrough_until_flush: "true"
#rbd_concurrent_management_ops: 20
#rbd_client_directories: false # this will create rbd_client_log_path and rbd_client_admin_socket_path directories with proper permissions, this WON'T work if libvirt and kvm are installed
#rbd_client_directories: false # this will create rbd_client_log_path and rbd_client_admin_socket_path directories with proper permissions
#rbd_client_directory_user: qemu
#rbd_client_directory_group: libvirtd
#rbd_client_log_file: /var/log/rbd-clients/qemu-guest-$pid.log # must be writable by QEMU and allowed by SELinux or AppArmor
#rbd_client_log_path: /var/log/rbd-clients/
#rbd_client_admin_socket_path: /var/run/ceph/rbd-clients # must be writable by QEMU and allowed by SELinux or AppArmor

View File

@ -173,7 +173,9 @@ debug_mds_level: 20
rbd_cache: "true"
rbd_cache_writethrough_until_flush: "true"
rbd_concurrent_management_ops: 20
rbd_client_directories: false # this will create rbd_client_log_path and rbd_client_admin_socket_path directories with proper permissions, this WON'T work if libvirt and kvm are installed
rbd_client_directories: false # this will create rbd_client_log_path and rbd_client_admin_socket_path directories with proper permissions
rbd_client_directory_user: qemu
rbd_client_directory_group: libvirtd
rbd_client_log_file: /var/log/rbd-clients/qemu-guest-$pid.log # must be writable by QEMU and allowed by SELinux or AppArmor
rbd_client_log_path: /var/log/rbd-clients/
rbd_client_admin_socket_path: /var/run/ceph/rbd-clients # must be writable by QEMU and allowed by SELinux or AppArmor

View File

@ -148,8 +148,8 @@
file:
path: "{{ item }}"
state: directory
owner: qemu
group: libvirtd
owner: "{{ rbd_client_directory_user }}"
group: "{{ rbd_client_directory_group }}"
mode: 0755
with_items:
- rbd_client_log_path