allow multiple mon containers to reach quorum

Signed-off-by: Huamin Chen <hchen@redhat.com>
pull/648/head
Huamin Chen 2016-02-08 17:23:37 +00:00 committed by Sébastien Han
parent e18154fbe5
commit a4b3885ac9
2 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,8 @@
not mon_containerized_deployment and not mon_containerized_deployment and
groups[restapi_group_name] is defined groups[restapi_group_name] is defined
- debug: msg="host {{ inventory_hostname }} last {{ groups.mons|last }}"
- name: create ceph rest api keyring when mon is containerized - name: create ceph rest api keyring when mon is containerized
command: docker exec {{ ansible_hostname }} ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring command: docker exec {{ ansible_hostname }} ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring
args: args:
@ -23,7 +25,9 @@
when: when:
cephx and cephx and
mon_containerized_deployment and mon_containerized_deployment and
groups[restapi_group_name] is defined groups[restapi_group_name] is defined and
inventory_hostname == groups.mons|last
- include: openstack_config.yml - include: openstack_config.yml
when: openstack_config when: openstack_config