serialize containerized mon config

Signed-off-by: Huamin Chen <hchen@redhat.com>
pull/648/head
Huamin Chen 2016-02-05 18:50:57 +00:00 committed by Sébastien Han
parent 6bd8d41a39
commit e18154fbe5
3 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -79,3 +79,4 @@
- ceph_bootstrap_config_keys
- statmonconfig.results
when: item.1.stat.exists == true
and inventory_hostname == groups.mons[0]