Merge "ceph: explicitly bind ceph-mgr to controller address"

This commit is contained in:
Zuul 2019-09-11 15:29:17 +00:00 committed by Gerrit Code Review
commit 5291624d0f

View File

@ -304,6 +304,19 @@ class platform::ceph::monitor
}
}
}
# explicitly bind ceph-mgr to host-specific address
# to avoid automatic binding of floating address
if $::hostname == $mon_0_host {
ceph_config{
"mgr.${$::hostname}/public_addr": value => $mon_0_ip;
}
}
elsif $::hostname == $mon_1_host {
ceph_config{
"mgr.${$::hostname}/public_addr": value => $mon_1_ip;
}
}
}
define osd_crush_location(