summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-10-23 11:48:10 -0400
committerMarco Platania <platania@research.att.com>2017-10-23 11:48:51 -0400
commit6182e8cebf6fd018de36a8fab5cb8e00f643606d (patch)
tree9621fe12cb81674c305ab440768adeca222ac7af
parent2cd378c2ce2ae27b07a665f18f483c0311f7fb97 (diff)
Add multiservice VM IP to SO init script
Change-Id: I2850284c39027cf5b8a185436bae5b81c332f8f5 Issue-ID: SO-181 Signed-off-by: Marco Platania <platania@research.att.com>
-rw-r--r--boot/so_vm_init.sh1
-rw-r--r--heat/ONAP/onap_openstack.yaml2
2 files changed, 3 insertions, 0 deletions
diff --git a/boot/so_vm_init.sh b/boot/so_vm_init.sh
index c6886011..9cfba5ea 100644
--- a/boot/so_vm_init.sh
+++ b/boot/so_vm_init.sh
@@ -8,6 +8,7 @@ OPENSTACK_USERNAME=$(cat /opt/config/openstack_username.txt)
OPENSTACK_APIKEY=$(cat /opt/config/api_key.txt)
export MSO_DOCKER_IMAGE_VERSION=$(cat /opt/config/docker_version.txt)
export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
+export OPENO_IP=$(cat /opt/config/openo_ip.txt)
# Deployments in OpenStack require a keystone file
if [ -e /opt/config/keystone.txt ]
diff --git a/heat/ONAP/onap_openstack.yaml b/heat/ONAP/onap_openstack.yaml
index cf01778b..1f4fb91c 100644
--- a/heat/ONAP/onap_openstack.yaml
+++ b/heat/ONAP/onap_openstack.yaml
@@ -734,6 +734,7 @@ resources:
__dmaap_topic__: { get_param: dmaap_topic }
__artifacts_version__: { get_param: artifacts_version }
__dns_ip_addr__: { get_param: dns_ip_addr }
+ __openo_ip__: { get_param: openo_ip_addr }
__docker_version__: { get_param: so_docker }
__gerrit_branch__: { get_param: so_branch }
__cloud_env__: { get_param: cloud_env }
@@ -750,6 +751,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 "__openo_ip__" > /opt/config/openo_ip.txt
echo "__dmaap_topic__" > /opt/config/dmaap_topic.txt
echo "__openstack_username__" > /opt/config/openstack_username.txt
echo "__openstack_tenant_id__" > /opt/config/tenant_id.txt