|
|
|
@ -10,7 +10,7 @@ load File.expand_path(vagrantfile) if File.exists?(vagrantfile)
|
|
|
|
|
Vagrant.configure('2') do |config|
|
|
|
|
|
config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ '.vagrant', '.git' ]
|
|
|
|
|
config.ssh.shell = "/bin/sh"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$deps = <<SCRIPT
|
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -yq install postgresql-client sudo sendmail
|
|
|
|
|
SCRIPT
|
|
|
|
@ -49,7 +49,7 @@ SCRIPT
|
|
|
|
|
config.vm.define "#{i[:name]}" do |node|
|
|
|
|
|
node.vm.hostname = "evomaintenance-#{i[:name]}"
|
|
|
|
|
node.vm.box = "#{i[:box]}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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]}"]
|
|
|
|
|