]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-mon: Don't set monitor directory mode recursively
authorBenoît Knecht <bknecht@protonmail.ch>
Wed, 28 Oct 2020 15:09:58 +0000 (16:09 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 2 Nov 2020 23:42:31 +0000 (18:42 -0500)
commit4a7186697ece863e6b1cab0ba3fc554df837ea72
treee2102bd01215aaf175fc4bc855675ab3a44d46b3
parenta1ff05b26ea63e5c9f8bbeb5339cff806465954e
ceph-mon: Don't set monitor directory mode recursively

After rolling updates performed with
`infrastructure-playbooks/rolling_updates.yml`, files located in
`/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}` had mode 0755 (including
the keyring), making them world-readable.

This commit separates the task that configured permissions recursively on
`/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}` into two separate tasks:

1. Set the ownership and mode of the directory itself;
2. Recursively set ownership in the directory, but don't modify the mode.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 0d76826bbb7b0b9303583c31147ebad9e5c420f9)
roles/ceph-mon/tasks/deploy_monitors.yml