summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2015-09-09 13:45:16 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-09-09 13:45:17 +0000
commit55846e9216601a5e3eeb0b16d0ede70fb684c03a (patch)
treeb966c4cd357c85c71a994739005a5c6b71288f1d
parent50fe670726f2229ef963517a890fef2d821b8821 (diff)
parentdb4a9ac5492659cd435b4e4e84868510259c6b29 (diff)
Merge "Fixes horizon IP URL for non-HA deployments"
-rwxr-xr-xforeman/ci/deploy.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/foreman/ci/deploy.sh b/foreman/ci/deploy.sh
index 0803993..29ad83c 100755
--- a/foreman/ci/deploy.sh
+++ b/foreman/ci/deploy.sh
@@ -1140,7 +1140,21 @@ start_virtual_nodes() {
if [ ! -z "$horizon_public_vip" ]; then
echo "${blue} Virtual deployment SUCCESS!! Foreman URL: http://${foreman_ip}, Horizon URL: http://${horizon_public_vip} ${reset}"
else
- echo "${blue} Virtual deployment SUCCESS!! Foreman URL: http://${foreman_ip}, Horizon URL: http://${odl_control_ip} ${reset}"
+ ##Find public IP of controller
+ for node in ${nodes}; do
+ node_type=config_nodes_${node}_type
+ node_type=$(eval echo \$$node_type)
+ if [ "$node_type" == "controller" ]; then
+ pushd $vm_dir/$node
+ horizon_ip=`vagrant ssh -c "ifconfig enp0s10" | grep -Eo "inet [0-9\.]+" | awk {'print $2'}`
+ popd
+ break
+ fi
+ done
+ if [ -z "$horizon_ip" ]; then
+ echo "${red}Warn: Unable to determine horizon IP, please login to your controller node to find it${reset}"
+ fi
+ echo "${blue} Virtual deployment SUCCESS!! Foreman URL: http://${foreman_ip}, Horizon URL: http://${horizon_ip} ${reset}"
fi
fi
}