labs: add my_ip to cinder.conf

Add a line to configure my_ip in cinder.conf of setup_cinder_volumes.sh
(present in install-guide).

Change-Id: I48ac0c636f4dce0173c3f4098c79e68dc7217003
This commit is contained in:
Roger Luethi 2014-11-29 11:35:59 +01:00
parent cd9caeb483
commit 5156e3d710

View File

@ -14,6 +14,12 @@ indicate_current_auto
# Set up Block Storage service (cinder).
#------------------------------------------------------------------------------
# Get FOURTH_OCTET for this node
source "$CONFIG_DIR/config.$(hostname)"
MY_MGMT_IP=$(get_ip_from_net_and_fourth "MGMT_NET" "$FOURTH_OCTET")
echo "IP address of this node's interface in management network: $MY_MGMT_IP."
echo "Installing cinder."
sudo apt-get install -y lvm2
@ -75,6 +81,8 @@ iniset_sudo $conf DEFAULT rabbit_host controller-mgmt
iniset_sudo $conf DEFAULT rabbit_port 5672
iniset_sudo $conf DEFAULT rabbit_userid guest
iniset_sudo $conf DEFAULT rabbit_password "$RABBIT_PASSWORD"
iniset_sudo $conf DEFAULT my_ip "$MY_MGMT_IP"
iniset_sudo $conf DEFAULT glance_host controller-mgmt
echo "Restarting cinder service."