diff options
author | Marco Platania <platania@research.att.com> | 2017-05-15 12:25:57 -0400 |
---|---|---|
committer | Marco Platania <platania@research.att.com> | 2017-05-15 12:25:57 -0400 |
commit | ac30532d811fbe0c24b84b630a12367416dd7121 (patch) | |
tree | df934afe7f39c7f904ebf9cda533f2e4b3350b50 /boot | |
parent | 4aac07a3628defdb97e9d54145aadd7263497641 (diff) |
[UCA-15] Allow root access to ONAP VMs
Change-Id: I2f70c71cd9c93aace320f4588eb7e4b8cff1bf6d
Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/aai_install.sh | 4 | ||||
-rw-r--r-- | boot/appc_install.sh | 4 | ||||
-rw-r--r-- | boot/asdc_install.sh | 4 | ||||
-rw-r--r-- | boot/dcae_install.sh | 4 | ||||
-rw-r--r-- | boot/dns_install.sh | 4 | ||||
-rw-r--r-- | boot/mr_install.sh | 4 | ||||
-rw-r--r-- | boot/mso_install.sh | 4 | ||||
-rw-r--r-- | boot/policy_install.sh | 4 | ||||
-rw-r--r-- | boot/portal_install.sh | 4 | ||||
-rw-r--r-- | boot/robot_install.sh | 4 | ||||
-rw-r--r-- | boot/sdnc_install.sh | 4 | ||||
-rw-r--r-- | boot/vid_install.sh | 4 |
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 |