Skip to content

Commit

Permalink
Merge pull request #201 from Ankurk99/master
Browse files Browse the repository at this point in the history
update Vagrantfile to create ssh rsa keys if they don't already exist
  • Loading branch information
nam-jaehyun authored Jul 12, 2021
2 parents 5c209c0 + 7cd0168 commit 320a015
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contribution/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ else
VM_NAME = "kubearmor-dev"
end

system("
if [ #{ARGV[0]} = 'up' ]; then
if [ ! -f ~/.ssh/id_rsa ]
then
echo '~/.ssh/id_rsa keys does not exist.'
ssh-keygen -t rsa -f ~/.ssh/id_rsa
fi
fi
")

Vagrant.configure("2") do |config|
# Need updated vbguest and reload for latest kernel
if ENV['NETNEXT'] == "1" then
Expand Down

0 comments on commit 320a015

Please # to comment.