mirror of https://github.com/ceph/ceph-ansible.git
Ensure that ceph-mon applies mon directory ownership recursively
Fixes #1635. Signed-off-by: Florian Haas <florian@hastexo.com>pull/1636/head
parent
7ef908a4d9
commit
18e6c35dee
|
@ -29,13 +29,14 @@
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
when: cephx
|
when: cephx
|
||||||
|
|
||||||
- name: create monitor directory
|
- name: create (and fix ownership of) monitor directory
|
||||||
file:
|
file:
|
||||||
path: /var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}
|
path: /var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}
|
||||||
state: directory
|
state: directory
|
||||||
owner: "ceph"
|
owner: "ceph"
|
||||||
group: "ceph"
|
group: "ceph"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
recurse: true
|
||||||
|
|
||||||
- name: ceph monitor mkfs with keyring
|
- 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 }}
|
command: ceph-mon --cluster {{ cluster }} --setuser ceph --setgroup ceph --mkfs -i {{ monitor_name }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ monitor_name }}
|
||||||
|
|
Loading…
Reference in New Issue