fix: remove ssh key for Vagrantfile

This commit is contained in:
Aymeric GUERACAGUE 2021-03-28 20:36:29 +02:00
parent a3a1c46562
commit ab7087581e
Signed by: Superkooka
GPG Key ID: F78F2B172E894865
1 changed files with 0 additions and 4 deletions

4
Vagrantfile vendored
View File

@ -4,11 +4,7 @@ Vagrant.configure("2") do |config|
config.vm.network "forwarded_port", guest: 8000, host: 8000 config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.provision "shell" do |s| config.vm.provision "shell" do |s|
ssh_pub_key = File.readlines("#{Dir.home}/.ssh/id_rsa.pub").first.strip
s.inline = <<-SHELL s.inline = <<-SHELL
echo #{ssh_pub_key} >> /home/vagrant/.ssh/authorized_keys
echo #{ssh_pub_key} >> /root/.ssh/authorized_keys
curl -fsSL https://crystal-lang.org/install.sh | sudo bash curl -fsSL https://crystal-lang.org/install.sh | sudo bash
curl -LO https://github.com/tsenart/vegeta/releases/download/v12.7.0/vegeta-12.7.0-linux-amd64.tar.gz curl -LO https://github.com/tsenart/vegeta/releases/download/v12.7.0/vegeta-12.7.0-linux-amd64.tar.gz