summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot/aai_install.sh4
-rw-r--r--boot/appc_install.sh4
-rw-r--r--boot/asdc_install.sh4
-rw-r--r--boot/dcae_install.sh4
-rw-r--r--boot/dns_install.sh4
-rw-r--r--boot/mr_install.sh4
-rw-r--r--boot/mso_install.sh4
-rw-r--r--boot/policy_install.sh4
-rw-r--r--boot/portal_install.sh4
-rw-r--r--boot/robot_install.sh4
-rw-r--r--boot/sdnc_install.sh4
-rw-r--r--boot/vid_install.sh4
12 files changed, 48 insertions, 0 deletions
diff --git a/boot/aai_install.sh b/boot/aai_install.sh
index d11e1e18..dcb7119e 100644
--- a/boot/aai_install.sh
+++ b/boot/aai_install.sh
@@ -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
diff --git a/boot/appc_install.sh b/boot/appc_install.sh
index 4df0b4b8..a1e38393 100644
--- a/boot/appc_install.sh
+++ b/boot/appc_install.sh
@@ -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
diff --git a/boot/asdc_install.sh b/boot/asdc_install.sh
index fa6e7994..99b2a39c 100644
--- a/boot/asdc_install.sh
+++ b/boot/asdc_install.sh
@@ -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
diff --git a/boot/dcae_install.sh b/boot/dcae_install.sh
index 6ea93ff2..ee818e19 100644
--- a/boot/dcae_install.sh
+++ b/boot/dcae_install.sh
@@ -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
diff --git a/boot/dns_install.sh b/boot/dns_install.sh
index 0bb2e5df..152a723a 100644
--- a/boot/dns_install.sh
+++ b/boot/dns_install.sh
@@ -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"
diff --git a/boot/mr_install.sh b/boot/mr_install.sh
index 480f2ea9..61c94729 100644
--- a/boot/mr_install.sh
+++ b/boot/mr_install.sh
@@ -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
diff --git a/boot/mso_install.sh b/boot/mso_install.sh
index 491db5ce..fe7a9149 100644
--- a/boot/mso_install.sh
+++ b/boot/mso_install.sh
@@ -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
diff --git a/boot/policy_install.sh b/boot/policy_install.sh
index c3f72a0c..eeb319f4 100644
--- a/boot/policy_install.sh
+++ b/boot/policy_install.sh
@@ -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
diff --git a/boot/portal_install.sh b/boot/portal_install.sh
index f9ca52bb..95f0bb21 100644
--- a/boot/portal_install.sh
+++ b/boot/portal_install.sh
@@ -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
diff --git a/boot/robot_install.sh b/boot/robot_install.sh
index b5b73878..0871f692 100644
--- a/boot/robot_install.sh
+++ b/boot/robot_install.sh
@@ -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
diff --git a/boot/sdnc_install.sh b/boot/sdnc_install.sh
index 44c15580..a62aeab9 100644
--- a/boot/sdnc_install.sh
+++ b/boot/sdnc_install.sh
@@ -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
diff --git a/boot/vid_install.sh b/boot/vid_install.sh
index 2bdd89be..4fbb6ece 100644
--- a/boot/vid_install.sh
+++ b/boot/vid_install.sh
@@ -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