From 18e6c35dee6147859d383f9b510726fa2b8b4c4b Mon Sep 17 00:00:00 2001 From: Florian Haas Date: Fri, 30 Jun 2017 10:17:23 +0200 Subject: [PATCH] Ensure that ceph-mon applies mon directory ownership recursively Fixes #1635. Signed-off-by: Florian Haas --- roles/ceph-mon/tasks/deploy_monitors.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index a8bea37e7..f431a0509 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -29,13 +29,14 @@ mode: "0600" when: cephx -- name: create monitor directory +- name: create (and fix ownership of) monitor directory file: path: /var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }} state: directory owner: "ceph" group: "ceph" mode: "0755" + recurse: true - name: ceph monitor mkfs with keyring command: ceph-mon --cluster {{ cluster }} --setuser ceph --setgroup ceph --mkfs -i {{ monitor_name }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ monitor_name }}