From b5691f2ec3ca6ac3e53ab689e7361c83d0d5b9ca Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Wed, 6 Mar 2024 13:32:57 +0100 Subject: [PATCH] mons: use hostname for initial members Signed-off-by: Seena Fallah --- roles/ceph-mon/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-mon/defaults/main.yml b/roles/ceph-mon/defaults/main.yml index 74c779d9c..1e470036b 100644 --- a/roles/ceph-mon/defaults/main.yml +++ b/roles/ceph-mon/defaults/main.yml @@ -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(',') }} ###########