From 643939612745cb8815f6b1e1d65f18a9bbaab39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 8 Mar 2016 14:32:32 +0100 Subject: [PATCH] ceph-osd: fragment directory and files perms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit works for all the ceph's distros now Signed-off-by: Sébastien Han --- roles/ceph-osd/tasks/osd_fragment.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/roles/ceph-osd/tasks/osd_fragment.yml b/roles/ceph-osd/tasks/osd_fragment.yml index 7c77be193..2803588b7 100644 --- a/roles/ceph-osd/tasks/osd_fragment.yml +++ b/roles/ceph-osd/tasks/osd_fragment.yml @@ -33,9 +33,9 @@ file: path: "{{ item }}" state: directory - owner: root - group: root - mode: 0644 + owner: "{{ dir_owner }}" + group: "{{ dir_group }}" + mode: "{{ dir_mode }}" with_items: - /etc/ceph/ceph.d/ - /etc/ceph/ceph.d/osd_fragments @@ -44,6 +44,9 @@ template: src: osd.conf.j2 dest: /etc/ceph/ceph.d/osd_fragments/osd.{{ item.stdout }}.conf + owner: "{{ dir_owner }}" + group: "{{ dir_group }}" + mode: "{{ activate_file_mode }}" with_items: combined_osd_id.results - name: copy ceph.conf for assembling @@ -54,14 +57,14 @@ assemble: src: /etc/ceph/ceph.d/osd_fragments/ dest: /etc/ceph/ceph.d/osd.conf - owner: root - group: root - mode: 0644 + owner: "{{ dir_owner }}" + group: "{{ dir_group }}" + mode: "{{ activate_file_mode }}" - name: assemble ceph conf and osd fragments assemble: src: /etc/ceph/ceph.d/ dest: /etc/ceph/ceph.conf - owner: root - group: root - mode: 0644 + owner: "{{ dir_owner }}" + group: "{{ dir_group }}" + mode: "{{ activate_file_mode }}"