Ensure configuration of mon_hosts by IP.
This commit is contained in:
parent
6db76f9158
commit
a976813923
|
@ -158,7 +158,7 @@ function ceph_changed {
|
|||
MONS=`relation-list`
|
||||
mon_hosts=""
|
||||
for mon in $MONS; do
|
||||
mon_hosts="$mon_hosts `relation-get private-address $mon`:6789"
|
||||
mon_hosts="$mon_hosts $(get_ip $(relation-get private-address $mon)):6789"
|
||||
done
|
||||
cat > /etc/ceph/ceph.conf << EOF
|
||||
[global]
|
||||
|
|
Loading…
Reference in New Issue