]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make RBD client directory owner/group configurable 650/head
authorChris St. Pierre <chris.a.st.pierre@gmail.com>
Fri, 25 Mar 2016 13:51:20 +0000 (08:51 -0500)
committerChris St. Pierre <chris.a.st.pierre@gmail.com>
Fri, 25 Mar 2016 13:51:20 +0000 (08:51 -0500)
Some versions (?) of libvirt provide a 'libvirt' group instead of
'libvirtd'. (Observed with libvirt-daemon-1.2.17-13.el7_2.2.x86_64.)
This makes the RBD client directory owner and group configurable to
allow for this.

group_vars/all.sample
roles/ceph-common/defaults/main.yml
roles/ceph-common/tasks/installs/install_on_redhat.yml

index 48375f7114f106de385eb5f5f057ee3c1e12cf17..4750bb2e0d7f5f5de9404c4f56a91c86acafe438 100644 (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
index 1a66d3c46e806b69ddfb37d4724e69913564954e..8348840f52b8096db22a0e2728fe8a86a333271b 100644 (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
index da0ce967e2c39f39e8a37c973c469d721919c478..5a346e75dcca99f77691c86b396304b092fe13e2 100644 (file)
   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