aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLB/scripts/v_dns_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-15 17:26:06 -0400
committerMarco Platania <platania@research.att.com>2017-05-15 17:26:06 -0400
commitbf325d77199a0e52f195f5304b784bb03a69a07f (patch)
treee44e80eda06dda8aa4178c710c3f9f566f26c93d /vnfs/vLB/scripts/v_dns_install.sh
parent1a532cd64a16a0186513c7ca2d78951294ca5c36 (diff)
Add templates and config for vLB in OpenStack
Change-Id: Iea69a49b3dc6739a5ee003d61a31e935c9f26476 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vLB/scripts/v_dns_install.sh')
-rw-r--r--vnfs/vLB/scripts/v_dns_install.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/vnfs/vLB/scripts/v_dns_install.sh b/vnfs/vLB/scripts/v_dns_install.sh
index be2c5ed3..5e1d55bf 100644
--- a/vnfs/vLB/scripts/v_dns_install.sh
+++ b/vnfs/vLB/scripts/v_dns_install.sh
@@ -6,6 +6,20 @@ DEMO_ARTIFACTS_VERSION=$(cat /opt/config/demo_artifacts_version.txt)
INSTALL_SCRIPT_VERSION=$(cat /opt/config/install_script_version.txt)
CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
+# OpenStack network configuration
+if [[ $CLOUD_ENV == "openstack" ]]
+then
+ echo 127.0.0.1 $(hostname) >> /etc/hosts
+
+ VDNS_PRIVATE_IP_O=$(cat /opt/config/local_private_ipaddr.txt)
+ echo "auto eth1" >> /etc/network/interfaces
+ echo "iface eth1 inet static" >> /etc/network/interfaces
+ echo " address $VDNS_PRIVATE_IP_O" >> /etc/network/interfaces
+ echo " netmask 255.255.255.0" >> /etc/network/interfaces
+
+ ifup eth1
+fi
+
# Download required dependencies
add-apt-repository -y ppa:openjdk-r/ppa
apt-get update