summaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-05-09 14:53:43 +0300
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-05-14 10:10:04 +0300
commit82d0d313427bf78a37726cd592f566c7ce840bd6 (patch)
treec1766772a2190e512fb631e964f2c45e74747487 /kud/hosting_providers
parent3a6d8ecba65a9c99cd5c2542978465969ead1590 (diff)
Make aio.sh rerunnable
aio.sh script can be run only ones. Cloning of k8s on top of existing dir does not work and ssh key generation on top of existing key does not work. Issue-ID: MULTICLOUD-620 Change-Id: Ic60dfd6b96ab78f6edcdc3655c18f90c4427c856 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Diffstat (limited to 'kud/hosting_providers')
-rwxr-xr-xkud/hosting_providers/vagrant/aio.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/kud/hosting_providers/vagrant/aio.sh b/kud/hosting_providers/vagrant/aio.sh
index 31663af5..0d06cc65 100755
--- a/kud/hosting_providers/vagrant/aio.sh
+++ b/kud/hosting_providers/vagrant/aio.sh
@@ -18,6 +18,7 @@ if [[ $(whoami) != 'root' ]];then
fi
echo "Cloning and configuring KUD project..."
+rm -rf k8s
git clone https://git.onap.org/multicloud/k8s/
cd k8s/kud/hosting_providers/baremetal/
cat <<EOL > inventory/hosts.ini
@@ -47,6 +48,7 @@ kube-node
kube-master
EOL
sed -i '/andrewrothstein.kubectl/d' ../../deployment_infra/playbooks/configure-*.yml
+rm -f ~/.ssh/id_rsa
echo -e "\n\n\n" | ssh-keygen -t rsa -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod og-wx ~/.ssh/authorized_keys