2015-07-12 17:15:59 +07:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
# vi: set tabstop=2 :
|
|
|
|
# vi: set shiftwidth=2 :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
|
|
|
|
vms = [
|
2015-08-09 02:34:17 +07:00
|
|
|
[ "wheezy-debian-mysql", "deb/wheezy-amd64" , "192.168.33.40" ],
|
|
|
|
[ "wheezy-upstream-mariadb", "deb/wheezy-amd64" , "192.168.33.42" ],
|
|
|
|
[ "wheezy-upstream-percona", "deb/wheezy-amd64" , "192.168.33.43" ],
|
|
|
|
[ "jessie-debian-mysql", "deb/jessie-amd64", "192.168.33.50" ],
|
|
|
|
[ "jessie-debian-mariadb", "deb/jessie-amd64", "192.168.33.51" ],
|
|
|
|
[ "jessie-upstream-mariadb", "deb/jessie-amd64", "192.168.33.52" ],
|
|
|
|
[ "jessie-upstream-percona", "deb/jessie-amd64", "192.168.33.53" ]
|
2015-07-12 17:15:59 +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"
|
2015-08-09 02:34:17 +07:00
|
|
|
ansible.groups = {
|
|
|
|
"debian_mysql" => ["wheezy-debian-mysql", "jessie-debian-mysql"],
|
|
|
|
"upstream_mariadb" => ["wheezy-upstream-mariadb", "jessie-upstream-mariadb"],
|
|
|
|
"upstream_percona" => ["wheezy-upstream-percona", "jessie-upstream-percona"],
|
|
|
|
"debian_mariadb" => ["jessie-debian-mariadb"]
|
|
|
|
}
|
2015-07-12 17:15:59 +07:00
|
|
|
ansible.verbose = 'vv'
|
2015-08-09 02:34:17 +07:00
|
|
|
ansible.sudo = true
|
2015-07-12 17:15:59 +07:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|