mirror of https://github.com/ceph/ceph-ansible.git
mons: use hostname for initial members
Signed-off-by: Seena Fallah <seenafallah@gmail.com>pull/7491/head
parent
92d1c81173
commit
c8eeae243e
|
@ -55,7 +55,7 @@ ceph_mon_container_params:
|
|||
- -i={{ monitor_name }}
|
||||
- --mon-data=/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}
|
||||
- --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