8acb775548
ceph-mgr service is mandatory in ceph luminous Depends-On: I875f84012a92d4f8b9dcb212d917cf61167270b8 Change-Id: I9418bf40a4bc3dcfc07c8b2eae17cb5779f5b444 Implements: blueprint ceph-luminous
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
with_items:
|
|
- "ceph-mon"
|
|
- "ceph-osd"
|
|
- "ceph-rgw"
|
|
- "ceph-mgr"
|
|
|
|
- name: Copying over config.json files for services
|
|
template:
|
|
src: "{{ item.name }}.json.j2"
|
|
dest: "{{ node_config_directory }}/{{ item.name }}/config.json"
|
|
when:
|
|
- inventory_hostname in groups[item.group]
|
|
with_items:
|
|
- name: "ceph-mon"
|
|
group: ceph-mon
|
|
- name: "ceph-osd"
|
|
group: ceph-osd
|
|
- name: "ceph-rgw"
|
|
group: ceph-rgw
|
|
- name: "ceph-mgr"
|
|
group: "ceph-mgr"
|
|
|
|
- name: Copying over ceph.conf
|
|
vars:
|
|
service_name: "{{ item }}"
|
|
merge_configs:
|
|
sources:
|
|
- "{{ role_path }}/templates/ceph.conf.j2"
|
|
- "{{ node_custom_config }}/ceph.conf"
|
|
- "{{ node_custom_config }}/ceph/{{ inventory_hostname }}/ceph.conf"
|
|
dest: "{{ node_config_directory }}/{{ item }}/ceph.conf"
|
|
with_items:
|
|
- "ceph-mon"
|
|
- "ceph-osd"
|
|
- "ceph-rgw"
|
|
- "ceph-mgr"
|