-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
31 lines (27 loc) · 926 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- mode: ruby -*-
# vi: set ft=ruby :
# vi: set tabstop=2 :
# vi: set shiftwidth=2 :
Vagrant.configure("2") do |config|
vms_debian = [
{ :name => "debian-stretch-php7", :box => "debian/stretch64", :vars => { "phalcon_version": '3.3.0' }, :groups => ['sury'] },
{ :name => "ubuntu-xenial-php7", :box => "kmklabs/xenial64", :vars => { "phalcon_version": '3.3.0' }, :groups => ['sury'] }
]
config.vm.network "private_network", type: "dhcp"
vms_debian.each do |opts|
config.vm.define opts[:name] do |m|
m.vm.box = opts[:box]
m.vm.provider "virtualbox" do |v|
v.cpus = 1
v.memory = 2048
end
m.vm.provision "ansible" do |ansible|
ansible.playbook = "tests/test.yml"
ansible.verbose = 'vv'
ansible.sudo = true
ansible.extra_vars = opts[:vars]
ansible.groups = { opts[:groups][0] => [opts[:name]] }
end
end
end
end