aboutsummaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-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
-rw-r--r--boot/vid_vm_init.sh2
13 files changed, 49 insertions, 1 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
diff --git a/boot/vid_vm_init.sh b/boot/vid_vm_init.sh
index fe2bb56a..601ad16c 100644
--- a/boot/vid_vm_init.sh
+++ b/boot/vid_vm_init.sh
@@ -18,4 +18,4 @@ docker rm -f vid-server
docker run --name vid-mariadb -e MYSQL_DATABASE=vid_openecomp_epsdk -e MYSQL_USER=vidadmin -e MYSQL_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U -e MYSQL_ROOT_PASSWORD=LF+tp_1WqgSY -v /opt/vid/lf_config/vid-my.cnf:/etc/mysql/my.cnf -v /opt/vid/lf_config/vid-pre-init.sql:/docker-entrypoint-initdb.d/vid-pre-init.sql -v /var/lib/mysql -d mariadb:10
-docker run -e VID_MYSQL_DBNAME=vid_openecomp -e VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d $NEXUS_DOCKER_REPO/openecomp/vid:$DOCKER_IMAGE_VERSION
+docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d $NEXUS_DOCKER_REPO/openecomp/vid:$DOCKER_IMAGE_VERSION