Ensure configuration of mon_hosts by IP.
This commit is contained in:
parent
625dde48ca
commit
391a546f77
|
@ -141,7 +141,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