From 14a6a54a60cb1e94a42aff56ec4962d6747858ce Mon Sep 17 00:00:00 2001 From: John-Paul Robinson <jpr@uab.edu> Date: Mon, 10 Jun 2019 09:58:25 -0500 Subject: [PATCH] Comment out ssh key injection This is done by the openstack instance provisioning and appears to interfere with openstack provisioning. --- Vagrantfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index ac7412a..f7ea85e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 -- GitLab