Ensure configuration of mon_hosts by IP.

This commit is contained in:
Adam Gandelman 2013-03-05 09:36:44 -08:00
parent 625dde48ca
commit 391a546f77
1 changed files with 1 additions and 1 deletions

View File

@ -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]