diff options
author | 2017-11-30 04:27:30 -0800 | |
---|---|---|
committer | 2017-11-30 04:27:30 -0800 | |
commit | 620877bb8fc9e4a4f851792b97166e79b5beb698 (patch) | |
tree | da3c010f03424aee11a12a0fe394887db98dbf1f | |
parent | de6d6ae606929edf65a26864adc257fee648d27e (diff) |
Replace the OPNFV hardcoded IP
The xci-deploy.sh script has an IP address which has been replaced
for OPNFV_HOST_IP environment variable. This commit completes that
change.
Change-Id: I285b6a5b88fb15e7b68a94e95634d9d289d8659a
Signed-off-by: Victor Morales <victor.morales@intel.com>
-rwxr-xr-x | xci/xci-deploy.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index 3a4616ce..fde2944e 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -328,14 +328,14 @@ OS_USER_CONFIG=$XCI_PATH/xci/file/$XCI_FLAVOR/openstack_user_config.yml python -c \ "import yaml if '$XCI_FLAVOR' is 'aio': - print 'Horizon UI is available at https://192.168.122.2' + print 'Horizon UI is available at https://$OPNFV_HOST_IP' else: host_info = open('$OS_USER_CONFIG', 'r') net_config = yaml.safe_load(host_info) print 'Info: Horizon UI is available at https://{}' \ .format(net_config['global_overrides']['external_lb_vip_address'])" -USERNAME=$(ssh -q root@192.168.122.2 awk "/OS_USERNAME=./" openrc) -PASSWORD=$(ssh -q root@192.168.122.2 awk "/OS_PASSWORD=./" openrc) +USERNAME=$(ssh -q root@$OPNFV_HOST_IP awk "/OS_USERNAME=./" openrc) +PASSWORD=$(ssh -q root@$OPNFV_HOST_IP awk "/OS_PASSWORD=./" openrc) echo "Info: Admin username - ${USERNAME##*=}" echo "Info: Admin password - ${PASSWORD##*=}" echo "Info: It is recommended to change the default password." |