Ensure that ceph-mon applies mon directory ownership recursively

Fixes #1635.

Signed-off-by: Florian Haas <florian@hastexo.com>
pull/1636/head
Florian Haas 2017-06-30 10:17:23 +02:00
parent 7ef908a4d9
commit 18e6c35dee
1 changed files with 2 additions and 1 deletions

View File

@ -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 }}