From 59c11ee674e71c5930d9b34a2615b37451d72989 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Tue, 23 May 2017 13:59:22 -0400 Subject: consolidate rackspace and openstack pktgen for vLB Change-Id: Ic8ff995cc4c5ff71e2e2f0ee14661a40b84dbafc Signed-off-by: Marco Platania --- vnfs/vLB/scripts/v_packetgen_install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vnfs/vLB') 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 -- cgit 1.2.3-korg