aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLB
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-23 13:59:22 -0400
committerMarco Platania <platania@research.att.com>2017-05-23 13:59:22 -0400
commit59c11ee674e71c5930d9b34a2615b37451d72989 (patch)
treeb7adc1213a30b2f4e5f30e8cd072123fdfda27c0 /vnfs/vLB
parentf975a02616cc81003667cdcba5ce59cf02dab248 (diff)
consolidate rackspace and openstack pktgen for vLB
Change-Id: Ic8ff995cc4c5ff71e2e2f0ee14661a40b84dbafc Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vLB')
-rw-r--r--vnfs/vLB/scripts/v_packetgen_install.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/vnfs/vLB/scripts/v_packetgen_install.sh b/vnfs/vLB/scripts/v_packetgen_install.sh
index 34503491..e48e9be5 100644
--- a/vnfs/vLB/scripts/v_packetgen_install.sh
+++ b/vnfs/vLB/scripts/v_packetgen_install.sh
@@ -4,6 +4,17 @@ REPO_URL_BLOB=$(cat /opt/config/repo_url_blob.txt)
REPO_URL_ARTIFACTS=$(cat /opt/config/repo_url_artifacts.txt)
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
+
+ # Allow remote login as root
+ mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.bk
+ cp /home/ubuntu/.ssh/authorized_keys /root/.ssh
+fi
# Download required dependencies
add-apt-repository -y ppa:openjdk-r/ppa