mirror of https://github.com/ceph/ceph-ansible.git
mons: use hostname for initial members
Signed-off-by: Seena Fallah <seenafallah@gmail.com>pull/7481/head
parent
e284a062a0
commit
b5691f2ec3
|
@ -55,7 +55,7 @@ ceph_mon_container_params:
|
||||||
- -i={{ monitor_name }}
|
- -i={{ monitor_name }}
|
||||||
- --mon-data=/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}
|
- --mon-data=/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}
|
||||||
- --public-addr={{ _current_monitor_address }}
|
- --public-addr={{ _current_monitor_address }}
|
||||||
- --mon-initial-members={{ groups[mon_group_name] | join(',') }}
|
- --mon-initial-members={{ groups[mon_group_name] | map('extract', hostvars, 'ansible_facts') | map(attribute='hostname') | join(',') }}
|
||||||
|
|
||||||
|
|
||||||
###########
|
###########
|
||||||
|
|
Loading…
Reference in New Issue