2015-07-23 21:35:25 +07:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
# vi: set tabstop=2 :
|
|
|
|
# vi: set shiftwidth=2 :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
|
|
|
|
vms = [
|
2016-03-04 13:12:41 +07:00
|
|
|
[ "jessie-php-5.6", "debian/contrib-jessie64", "192.168.33.88", "5.6" ],
|
|
|
|
[ "jessie-php-7.0", "debian/contrib-jessie64", "192.168.33.89", "7.0" ],
|
2017-03-17 00:22:32 +07:00
|
|
|
[ "jessie-php-7.1", "debian/contrib-jessie64", "192.168.33.89", "7.1" ],
|
2016-03-04 13:12:41 +07:00
|
|
|
[ "stretch-php-5.6", "sharlak/debian_stretch_64", "192.168.33.90", "5.6" ],
|
|
|
|
[ "stretch-php-7.0", "sharlak/debian_stretch_64", "192.168.33.91", "7.0" ]
|
2015-07-23 21:35:25 +07:00
|
|
|
]
|
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.cpus = 1
|
|
|
|
v.memory = 256
|
|
|
|
end
|
|
|
|
|
|
|
|
vms.each do |vm|
|
|
|
|
config.vm.define vm[0] do |m|
|
|
|
|
m.vm.box = vm[1]
|
|
|
|
m.vm.network "private_network", ip: vm[2]
|
|
|
|
|
|
|
|
m.vm.provision "ansible" do |ansible|
|
|
|
|
ansible.playbook = "tests/test.yml"
|
|
|
|
ansible.verbose = 'vv'
|
2016-03-04 13:12:41 +07:00
|
|
|
ansible.sudo = true
|
|
|
|
ansible.extra_vars = {
|
|
|
|
php_version: vm[3]
|
|
|
|
}
|
2015-07-23 21:35:25 +07:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|