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
|
||||
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
|
||||
command: docker exec {{ ansible_hostname }} ceph auth get-or-create client.restapi osd 'allow *' mon 'allow *' -o /etc/ceph/ceph.client.restapi.keyring
|
||||
args:
|
||||
|
@ -23,7 +25,9 @@
|
|||
when:
|
||||
cephx 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
|
||||
when: openstack_config
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
when: inventory_hostname == groups.mons[0]
|
||||
- include: fetch_configs.yml
|
||||
- include: start_docker_monitor.yml
|
||||
- include: ../ceph_keys.yml
|
||||
- include: ../ceph_keys.yml
|
Loading…
Reference in New Issue