aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-05-14 16:32:38 -0400
committerMarco Platania <platania@research.att.com>2018-05-14 16:32:38 -0400
commit912776b9702662acac4fe4990ed5b2e1eb4be01e (patch)
tree69aafd4e942a83701eb72c924e78f20b7eeaab97
parentea62274a1dfca76065ba530a3d62fec729e0a72a (diff)
Pass local IP to AAF VM
Change-Id: Ib4228124415cd1ee70975d737f6c8462107473f4 Issue-ID: INT-444 Signed-off-by: Marco Platania <platania@research.att.com>
-rw-r--r--boot/aaf_vm_init.sh2
-rw-r--r--heat/ONAP/onap_openstack.yaml2
2 files changed, 3 insertions, 1 deletions
diff --git a/boot/aaf_vm_init.sh b/boot/aaf_vm_init.sh
index 4eab2143..06d8de1d 100644
--- a/boot/aaf_vm_init.sh
+++ b/boot/aaf_vm_init.sh
@@ -6,7 +6,7 @@ NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
HOSTNAME=`hostname`
FQDN=aaf.api.simpledemo.onap.org
-HOST_IP=$(cat /opt/config/dns_ip_addr.txt)
+HOST_IP=$(cat /opt/config/local_ip_addr.txt)
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
diff --git a/heat/ONAP/onap_openstack.yaml b/heat/ONAP/onap_openstack.yaml
index ab2f4e99..267f67ea 100644
--- a/heat/ONAP/onap_openstack.yaml
+++ b/heat/ONAP/onap_openstack.yaml
@@ -2156,6 +2156,7 @@ resources:
__nexus_password__: { get_param: nexus_password }
__artifacts_version__: { get_param: artifacts_version }
__dns_ip_addr__: { get_param: dns_ip_addr }
+ __local_ip_addr__: { get_param: aaf_ip_addr }
__docker_version__: { get_param: aaf_docker }
__cloud_env__: { get_param: cloud_env }
__external_dns__: { get_param: external_dns }
@@ -2173,6 +2174,7 @@ resources:
echo "__nexus_password__" > /opt/config/nexus_password.txt
echo "__artifacts_version__" > /opt/config/artifacts_version.txt
echo "__dns_ip_addr__" > /opt/config/dns_ip_addr.txt
+ echo "__local_ip_addr__" > /opt/config/local_ip_addr.txt
echo "__docker_version__" > /opt/config/docker_version.txt
echo "__cloud_env__" > /opt/config/cloud_env.txt
echo "__external_dns__" > /opt/config/external_dns.txt