mirror of https://github.com/ceph/ceph-ansible.git
allow multiple mon containers to reach quorum
Signed-off-by: Huamin Chen <hchen@redhat.com>pull/648/head
parent
e18154fbe5
commit
a4b3885ac9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue