Skip to content
Snippets Groups Projects
Commit 14a6a54a authored by John-Paul Robinson's avatar John-Paul Robinson
Browse files

Comment out ssh key injection

This is done by the openstack instance provisioning and appears
to interfere with openstack provisioning.
parent ba60ec93
No related branches found
No related tags found
1 merge request!34Add openstack to vagrant
......@@ -59,12 +59,12 @@ Vagrant.configure("2") do |config|
#config.ssh.private_key_path = ["~/.ssh/id_rsa", "~/.vagrant.d/insecure_private_key"]
# append user's key to vagrant config to avoid overwrite of existing authorized_keys
# https://stackoverflow.com/a/31153912/8928529
config.vm.provision "ssh_pub_key", type: "shell" do |s|
ssh_pub_key = File.readlines("#{Dir.home}/.ssh/id_rsa.pub").first.strip
s.inline = <<-SHELL
echo #{ssh_pub_key} >> /home/centos/.ssh/authorized_keys
SHELL
end
#config.vm.provision "ssh_pub_key", type: "shell" do |s|
# ssh_pub_key = File.readlines("#{Dir.home}/.ssh/id_rsa.pub").first.strip
# s.inline = <<-SHELL
# echo #{ssh_pub_key} >> /home/centos/.ssh/authorized_keys
# SHELL
#end
config.vm.provision "shell", inline: <<-SHELL
if [ -f /vagrant/localenv.sh ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment