Add script to provision SSH keys
This commit is contained in:
11
Vagrantfile
vendored
11
Vagrantfile
vendored
@@ -2,7 +2,11 @@
|
||||
# vi: set ft=ruby :
|
||||
|
||||
unless ENV["VAGRANT_BYPASS_REQUIRED_PLUGINS"]
|
||||
required_plugins = [ "vagrant-disksize", "vagrant-vbguest", "vagrant-reload" ]
|
||||
required_plugins = [
|
||||
"vagrant-disksize",
|
||||
"vagrant-vbguest",
|
||||
"vagrant-reload"
|
||||
]
|
||||
plugins_installed = required_plugins.reduce(true) do |pi, rp|
|
||||
pi && Vagrant.has_plugin?(rp)
|
||||
end
|
||||
@@ -72,6 +76,11 @@ Vagrant.configure("2") do |config|
|
||||
name: "Install APT Packages",
|
||||
path: "provisioners/install-apt-packages.sh"
|
||||
|
||||
config.vm.provision :shell,
|
||||
name: "Setup SSH keys",
|
||||
path: "provisioners/setup-ssh-key.sh",
|
||||
privileged: false
|
||||
|
||||
config.vm.provision :shell,
|
||||
name: "Cleanup tasks",
|
||||
inline: <<~SHELLEND
|
||||
|
||||
Reference in New Issue
Block a user