|
|
|
@ -12,7 +12,7 @@ Vagrant.configure('2') do |config|
|
|
|
|
|
config.ssh.shell = "/bin/sh"
|
|
|
|
|
|
|
|
|
|
$deps = <<SCRIPT
|
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -yq install postgresql-client sudo
|
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -yq install postgresql-client sudo sendmail
|
|
|
|
|
SCRIPT
|
|
|
|
|
|
|
|
|
|
$install = <<SCRIPT
|
|
|
|
@ -51,7 +51,8 @@ SCRIPT
|
|
|
|
|
node.vm.hostname = "evomaintenance-#{i[:name]}"
|
|
|
|
|
node.vm.box = "#{i[:box]}"
|
|
|
|
|
|
|
|
|
|
node.vm.provision "deps", type: "shell", :inline => $deps if "#{i[:name]}" == "debian"
|
|
|
|
|
config.vm.provision "deps", type: "shell", :inline => $deps if "#{i[:name]}" == "debian"
|
|
|
|
|
config.vm.provision "deps", type: "shell", :inline => "pkg_add postgresql-client-10.5p1" if "#{i[:name]}" == "openbsd"
|
|
|
|
|
config.vm.provision "install", type: "shell", :inline => $install, :args => ["#{i[:group]}"]
|
|
|
|
|
config.vm.provision "trap", type: "shell", :inline => $trap
|
|
|
|
|
end
|
|
|
|
|