mirror of https://github.com/ceph/ceph-ansible.git
ceph-osd: fragment directory and files perms
works for all the ceph's distros now Signed-off-by: Sébastien Han <seb@redhat.com>pull/609/head
parent
9363665019
commit
6439396127
|
@ -33,9 +33,9 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: "{{ dir_owner }}"
|
||||||
group: root
|
group: "{{ dir_group }}"
|
||||||
mode: 0644
|
mode: "{{ dir_mode }}"
|
||||||
with_items:
|
with_items:
|
||||||
- /etc/ceph/ceph.d/
|
- /etc/ceph/ceph.d/
|
||||||
- /etc/ceph/ceph.d/osd_fragments
|
- /etc/ceph/ceph.d/osd_fragments
|
||||||
|
@ -44,6 +44,9 @@
|
||||||
template:
|
template:
|
||||||
src: osd.conf.j2
|
src: osd.conf.j2
|
||||||
dest: /etc/ceph/ceph.d/osd_fragments/osd.{{ item.stdout }}.conf
|
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
|
with_items: combined_osd_id.results
|
||||||
|
|
||||||
- name: copy ceph.conf for assembling
|
- name: copy ceph.conf for assembling
|
||||||
|
@ -54,14 +57,14 @@
|
||||||
assemble:
|
assemble:
|
||||||
src: /etc/ceph/ceph.d/osd_fragments/
|
src: /etc/ceph/ceph.d/osd_fragments/
|
||||||
dest: /etc/ceph/ceph.d/osd.conf
|
dest: /etc/ceph/ceph.d/osd.conf
|
||||||
owner: root
|
owner: "{{ dir_owner }}"
|
||||||
group: root
|
group: "{{ dir_group }}"
|
||||||
mode: 0644
|
mode: "{{ activate_file_mode }}"
|
||||||
|
|
||||||
- name: assemble ceph conf and osd fragments
|
- name: assemble ceph conf and osd fragments
|
||||||
assemble:
|
assemble:
|
||||||
src: /etc/ceph/ceph.d/
|
src: /etc/ceph/ceph.d/
|
||||||
dest: /etc/ceph/ceph.conf
|
dest: /etc/ceph/ceph.conf
|
||||||
owner: root
|
owner: "{{ dir_owner }}"
|
||||||
group: root
|
group: "{{ dir_group }}"
|
||||||
mode: 0644
|
mode: "{{ activate_file_mode }}"
|
||||||
|
|
Loading…
Reference in New Issue