aboutsummaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-rw-r--r--boot/oof_vm_init.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/boot/oof_vm_init.sh b/boot/oof_vm_init.sh
index 7b0cc4c9..492f3dcb 100644
--- a/boot/oof_vm_init.sh
+++ b/boot/oof_vm_init.sh
@@ -43,6 +43,7 @@ docker pull $NEXUS_DOCKER_REPO/onap/optf-has:$DOCKER_IMAGE_VERSION
OSDF_IMAGE_NAME="$NEXUS_DOCKER_REPO/onap/optf-osdf"
OSDF_CONFIG=/opt/optf-osdf/config/osdf_config.yaml
+HAS_HOST=$(docker inspect --format '{{ .NetworkSettings.Networks.bridge.IPAddress}}' api)
mkdir -p /opt/optf-osdf/config
@@ -53,7 +54,7 @@ soUsername: "" # SO username for call back.
soPassword: "" # SO password for call back.
# Credentials for Conductor
-conductorUrl: https://localhost:8091/v1/plans/
+conductorUrl: https://$HAS_HOST:8091/v1/plans/
conductorUsername: admin1
conductorPassword: plan.15
conductorPingWaitTime: 60 # seconds to wait before calling the conductor retry URL
@@ -228,4 +229,4 @@ curl -X POST \
}
'
-echo "Healthcheck plan inserted" \ No newline at end of file
+echo "Healthcheck plan inserted"