2015-08-29 11:49:57 +00:00
|
|
|
---
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Ensuring config directories exist
|
|
|
|
file:
|
|
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
|
|
state: "directory"
|
|
|
|
recurse: yes
|
|
|
|
with_items:
|
|
|
|
- "ceph-mon"
|
|
|
|
- "ceph-osd"
|
2015-12-23 23:17:47 +02:00
|
|
|
- "ceph-rgw"
|
2015-08-29 11:49:57 +00:00
|
|
|
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Copying over config.json files for services
|
2015-09-27 10:20:33 +00:00
|
|
|
template:
|
2015-12-18 19:40:48 +00:00
|
|
|
src: "{{ item }}.json.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
|
|
with_items:
|
|
|
|
- "ceph-mon"
|
|
|
|
- "ceph-osd"
|
2015-12-23 23:17:47 +02:00
|
|
|
- "ceph-rgw"
|
2015-09-27 10:20:33 +00:00
|
|
|
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Copying over ceph.conf
|
|
|
|
merge_configs:
|
|
|
|
vars:
|
|
|
|
service_name: "{{ item }}"
|
|
|
|
sources:
|
|
|
|
- "{{ role_path }}/templates/ceph.conf.j2"
|
2015-08-29 11:49:57 +00:00
|
|
|
- "/etc/kolla/config/ceph.conf"
|
2015-12-18 19:40:48 +00:00
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/ceph.conf"
|
|
|
|
with_items:
|
|
|
|
- "ceph-mon"
|
|
|
|
- "ceph-osd"
|
2015-12-23 23:17:47 +02:00
|
|
|
- "ceph-rgw"
|