mirror of https://github.com/ceph/ceph-ansible.git
serialize containerized mon config
Signed-off-by: Huamin Chen <hchen@redhat.com>pull/648/head
parent
6bd8d41a39
commit
e18154fbe5
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- name: create ceph conf directory
|
||||
file:
|
||||
path: /etc/ceph
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: generate ceph configuration file
|
||||
config_template:
|
||||
src: "{{ playbook_dir }}/roles/ceph-common/templates/ceph.conf.j2"
|
||||
dest: /etc/ceph/ceph.conf
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0644"
|
||||
config_overrides: "{{ ceph_conf_overrides }}"
|
||||
config_type: ini
|
|
@ -20,6 +20,9 @@
|
|||
- include: selinux.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
# let the first mon create configs and keyrings
|
||||
- include: create_configs.yml
|
||||
when: inventory_hostname == groups.mons[0]
|
||||
- include: fetch_configs.yml
|
||||
- include: start_docker_monitor.yml
|
||||
- include: ../ceph_keys.yml
|
||||
|
|
|
@ -79,3 +79,4 @@
|
|||
- ceph_bootstrap_config_keys
|
||||
- statmonconfig.results
|
||||
when: item.1.stat.exists == true
|
||||
and inventory_hostname == groups.mons[0]
|
||||
|
|
Loading…
Reference in New Issue