]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
changed permissions under ceph user
authorcrcceph <crcceph@gmail.com>
Wed, 16 Dec 2015 07:19:07 +0000 (23:19 -0800)
committercrcceph <crcceph@gmail.com>
Wed, 16 Dec 2015 07:19:07 +0000 (23:19 -0800)
when running under the user ceph the rbd client directory should be owned by ceph

roles/ceph-common/tasks/main.yml

index 6b6b4dfeaae405412006861564865a2b603ca10d..ff704659378fc54811a51ed89307b86b632796a9 100644 (file)
     - restart ceph rgws on red hat
     - restart ceph rgws with systemd
 
-- name: create rbd client directory
+- name: create rbd client directory (before infernalis)
   file:
     path: "{{ rbd_client_admin_socket_path }}"
     state: directory
     owner: root
     group: root
     mode: 0644
+  when: not is_ceph_infernalis
+
+- name: create rbd client directory (for infernalis or after)
+  file:
+    path: "{{ rbd_client_admin_socket_path }}"
+    state: directory
+    owner: ceph
+    group: ceph
+    mode: 0770
+  when: is_ceph_infernalis
 
 # NOTE (leseb): be careful with the following
 # somehow the YAML syntax using "is_ceph_infernalis: {{"