[UCA-15] Allow root access to ONAP VMs 09/4209/1
authorMarco Platania <platania@research.att.com>
Mon, 15 May 2017 16:25:57 +0000 (12:25 -0400)
committerMarco Platania <platania@research.att.com>
Mon, 15 May 2017 16:25:57 +0000 (12:25 -0400)
Change-Id: I2f70c71cd9c93aace320f4588eb7e4b8cff1bf6d
Signed-off-by: Marco Platania <platania@research.att.com>
12 files changed:
boot/aai_install.sh
boot/appc_install.sh
boot/asdc_install.sh
boot/dcae_install.sh
boot/dns_install.sh
boot/mr_install.sh
boot/mso_install.sh
boot/policy_install.sh
boot/portal_install.sh
boot/robot_install.sh
boot/sdnc_install.sh
boot/vid_install.sh

index d11e1e1..dcb7119 100644 (file)
@@ -10,6 +10,10 @@ CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index 4df0b4b..a1e3839 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index fa6e799..99b2a39 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index 6ea93ff..ee818e1 100644 (file)
@@ -42,6 +42,10 @@ if [[ $CLOUD_ENV != "rackspace" ]]
 then
        # Add host name to /etc/host to avoid warnings in openstack images
        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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index 0bb2e5d..152a723 100644 (file)
@@ -9,6 +9,10 @@ if [[ $CLOUD_ENV != "rackspace" ]]
 then
        # Add host name to /etc/host to avoid warnings in openstack images
        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
 
        # Set the Bind configuration file name based on the deployment environment
        ZONE_FILE="bind_zones"
index 480f2ea..61c9472 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index 491db5c..fe7a914 100644 (file)
@@ -12,6 +12,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index c3f72a0..eeb319f 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index f9ca52b..95f0bb2 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index b5b7387..0871f69 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index 44c1558..a62aeab 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface
index 2bdd89b..4fbb6ec 100644 (file)
@@ -11,6 +11,10 @@ GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
 if [[ $CLOUD_ENV != "rackspace" ]]
 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
 
 # Set private IP in /etc/network/interfaces manually in the presence of public interface