diff options
| author | Hui Kang <hkang.sunysb@gmail.com> | 2015-09-22 01:01:38 +0000 |
|---|---|---|
| committer | Hui Kang <hkang.sunysb@gmail.com> | 2015-09-24 21:01:47 +0000 |
| commit | c51ee7a1df3b10c1792cd9225b1b2aa6fb57fc51 (patch) | |
| tree | 4cbd8f3f0ea078a7578f62d856ecc15b67434d68 | |
| parent | 9c54b0afff2c522960d6a13eb4885cb2a0a53ce0 (diff) | |
| download | kolla-c51ee7a1df3b10c1792cd9225b1b2aa6fb57fc51.tar.gz kolla-c51ee7a1df3b10c1792cd9225b1b2aa6fb57fc51.zip | |
Add pub key to the VM booted by vagrant
so that the ./tool/init-runonce can use the key
Change-Id: I50e5540a24ddda9d8266585e7cb13fb8e3ad4473
Closes-Bug: #1498240
| -rw-r--r-- | vagrant/Vagrantfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index b9a5e7cda..720a4d20d 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -62,6 +62,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/* |
