mons: use hostname for initial members

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
pull/7481/head
Seena Fallah 2024-03-06 13:32:57 +01:00 committed by Guillaume Abrioux
parent e284a062a0
commit b5691f2ec3
1 changed files with 1 additions and 1 deletions

View File

@ -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(',') }}
########### ###########