Set permissions on monitor directory to u=rwX,g=rX,o=rX recursive

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>
pull/3639/head
Kevin Coakley 2019-02-26 09:30:31 -08:00 committed by mergify[bot]
parent 7fd92348bb
commit d327681b99
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
state: directory state: directory
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}" owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ 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 recurse: true
- name: set_fact client_admin_ceph_authtool_cap - name: set_fact client_admin_ceph_authtool_cap