ansible-public/test/Vagrantfile
Jérémy Lecour 72569328d7 vagrant: we can test on jessie/stretch in parallel
Only for Stretch :
$ vagrant up stretch

Only for Jessie :
$ vagrant up jessie

Both at the same time :
$ vagrant up
2017-10-09 09:17:52 +02:00

55 lines
1.4 KiB
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder "./vagrant_share/", "/vagrant", disabled: true
config.vm.provider :virtualbox do |v|
v.memory = 2048
v.cpus = 2
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
# Stretch
config.vm.define :stretch do |node|
node.vm.hostname = "stretch"
node.vm.box = "debian/stretch64"
# default.vm.network :private_network, ip: "192.168.33.33"
node.vm.provision :ansible, run: "always" do |ansible|
ansible.limit = "stretch"
ansible.playbook = "vagrant.yml"
# ansible.tags = "mysql"
ansible.raw_arguments = [
"-b",
"--ask-vault-pass",
"--diff",
# "--syntax",
# "-vvv",
]
end
end
# Jessie
config.vm.define :jessie do |node|
node.vm.hostname = "jessie"
node.vm.box = "debian/jessie64"
# default.vm.network :private_network, ip: "192.168.33.33"
node.vm.provision :ansible, run: "always" do |ansible|
ansible.limit = "jessie"
ansible.playbook = "vagrant.yml"
# ansible.tags = "mysql"
ansible.raw_arguments = [
"-b",
"--ask-vault-pass",
"--diff",
# "--syntax",
# "-vvv",
]
end
end
end