ansible-nginx/Vagrantfile

33 lines
716 B
Plaintext
Raw Normal View History

2015-07-15 17:14:39 +07:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
# vi: set tabstop=2 :
# vi: set shiftwidth=2 :
Vagrant.configure("2") do |config|
vms = [
2016-03-05 16:46:46 +07:00
[ "debian-wheezy", "debian/wheezy64" ],
[ "debian-jessie", "debian/jessie64" ],
[ "debian-stretch", "sharlak/debian_stretch_64" ]
2015-07-15 17:14:39 +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]
2016-03-05 16:46:46 +07:00
m.vm.network "private_network", type: "dhcp"
2015-07-15 17:14:39 +07:00
m.vm.provision "ansible" do |ansible|
ansible.playbook = "tests/test.yml"
ansible.groups = { "test" => [ vm[0] ] }
ansible.verbose = 'vv'
ansible.sudo = true
end
end
end
end