Merge "orchestrate-devstack: Copy controller ceph.conf and keyrings to subnode"
This commit is contained in:
commit
357698d4cb
@ -18,6 +18,11 @@
|
||||
name: sync-devstack-data
|
||||
when: devstack_services['tls-proxy']|default(false)
|
||||
|
||||
- name: Sync controller ceph.conf and key rings to subnode
|
||||
include_role:
|
||||
name: sync-controller-ceph-conf-and-keys
|
||||
when: devstack_plugins is defined and 'devstack-plugin-ceph' in devstack_plugins
|
||||
|
||||
- name: Run devstack on the sub-nodes
|
||||
include_role:
|
||||
name: run-devstack
|
||||
|
3
roles/sync-controller-ceph-conf-and-keys/README.rst
Normal file
3
roles/sync-controller-ceph-conf-and-keys/README.rst
Normal file
@ -0,0 +1,3 @@
|
||||
Sync ceph config and keys between controller and subnodes
|
||||
|
||||
Simply copy the contents of /etc/ceph on the controller to subnodes.
|
15
roles/sync-controller-ceph-conf-and-keys/tasks/main.yaml
Normal file
15
roles/sync-controller-ceph-conf-and-keys/tasks/main.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user