aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-25 15:41:12 +0000
committerGerrit Code Review <review@openstack.org>2015-09-25 15:41:12 +0000
commit80c1726b45e0d4898080abfd438766420f16ed4f (patch)
treee976368614449025688709b16d68846e807ad1a2
parentd66eaf65e352542848ba35f5b4b33b6ff2fd8a04 (diff)
parentc51ee7a1df3b10c1792cd9225b1b2aa6fb57fc51 (diff)
downloadkolla-80c1726b45e0d4898080abfd438766420f16ed4f.tar.gz
kolla-80c1726b45e0d4898080abfd438766420f16ed4f.zip
Merge "Add pub key to the VM booted by vagrant"
-rw-r--r--vagrant/Vagrantfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 6b7b22b6b..73efe587c 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -45,6 +45,8 @@ Vagrant.configure(2) do |config|
chmod 600 /root/.ssh/id_rsa
echo '#{my_publickey}' > /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
+ echo '#{my_publickey}' > /root/.ssh/id_rsa.pub
+ chmod 644 /root/.ssh/id_rsa.pub
mkdir -p /home/vagrant/.ssh
echo '#{my_privatekey}' >> /home/vagrant/.ssh/id_rsa
chmod 600 /home/vagrant/.ssh/*