update: ensure /var/lib/ceph/bootstrap-rbd-mirror is present

This directory is created by ceph-config node by node.
In the upgrade context we need it to be created on ALL monitors as soon
as the first iteration because of the task right after which creates and sends
the keyrings on all monitors.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3748/head
Guillaume Abrioux 2019-03-20 11:38:28 +01:00 committed by Dimitri Savineau
parent 82764afe8d
commit 7fa2434f0f
1 changed files with 14 additions and 0 deletions

View File

@ -222,6 +222,20 @@
when: when:
- containerized_deployment - containerized_deployment
- name: ensure /var/lib/ceph/bootstrap-rbd-mirror is present
file:
path: /var/lib/ceph/bootstrap-rbd-mirror
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: '755'
state: directory
when:
- cephx
delegate_to: "{{ item }}"
with_items: "{{ groups[mon_group_name] }}"
when:
- inventory_hostname == groups[mon_group_name][0]
- name: create potentially missing keys (rbd and rbd-mirror) - name: create potentially missing keys (rbd and rbd-mirror)
ceph_key: ceph_key:
name: "client.{{ item.0 }}" name: "client.{{ item.0 }}"