]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Set permissions on monitor directory to u=rwX,g=rX,o=rX recursive
authorKevin Coakley <kcoakley@sdsc.edu>
Tue, 26 Feb 2019 17:30:31 +0000 (09:30 -0800)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 27 Feb 2019 10:48:19 +0000 (10:48 +0000)
Set directories to 755 and files to 644 to /var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }} recursively instead of setting files and directories to 755 recursively. The ceph mon process writes files to this path with permissions 644. This update stops ansible from updating the permissions in /var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }} every time ceph mon writes a file and increases idempotency.

Signed-off-by: Kevin Coakley <kcoakley@sdsc.edu>
roles/ceph-mon/tasks/deploy_monitors.yml

index 6cb79f6ce75839afdeffef5f783bec5c0d92ea34..233c383fb6023578206202a9b6bb862b8c049f92 100644 (file)
@@ -43,7 +43,7 @@
     state: directory
     owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
     group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
-    mode: "0755"
+    mode: "u=rwX,g=rX,o=rX"
     recurse: true
 
 - name: set_fact client_admin_ceph_authtool_cap