From 9bba978fd4bd9226d0647251b7fe467813b4e58f Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Sat, 29 Nov 2014 14:40:53 +0100 Subject: [PATCH] labs: set authentication host (OPENSTACK_HOST) Set OPENSTACK_HOST (default: 127.0.0.1) to controller-mgmt. Change-Id: I54e4aa5786426d30074a51100162a53f9d1768f7 --- labs/scripts/setup_horizon.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/labs/scripts/setup_horizon.sh b/labs/scripts/setup_horizon.sh index c7d13aab..640c4d57 100755 --- a/labs/scripts/setup_horizon.sh +++ b/labs/scripts/setup_horizon.sh @@ -44,6 +44,10 @@ function check_dashboard_settings { echo -n "Allowed hosts: " grep "^ALLOWED_HOSTS" $dashboard_conf + + local auth_host=controller-mgmt + echo "Setting OPENSTACK_HOST = \"$auth_host\"." + sudo sed -i "s#^\(OPENSTACK_HOST =\).*#\1 \"$auth_host\";#" $dashboard_conf } echo "Checking dashboard configuration."