devstack/roles/sync-controller-ceph-conf-and-keys/tasks/main.yaml
Lee Yarwood e11d367d8e orchestrate-devstack: Copy controller ceph.conf and keyrings to subnode
This change introduces a basic role to copy the contents of /etc/ceph
between the controller and subnodes during orchestrate-devstack allowing
a multinode ceph job to be introduced by
I9ffdff44a3ad42ebdf26ab72e24dfe3b12b1ef8b.

Note that this role is only used when devstack-plugin-ceph is enabled.

Change-Id: I324c0f35db34f8540ca164bf8c6e3dea67c5b1b4
2021-02-10 16:01:04 +00:00

16 lines
300 B
YAML

- name: Ensure /etc/ceph exists on subnode
become: true
file:
path: /etc/ceph
state: directory
- name: Copy /etc/ceph from controller to subnode
become: true
synchronize:
owner: yes
group: yes
perms: yes
src: /etc/ceph/
dest: /etc/ceph/
delegate_to: controller