update-system/tests/Vagrantfile

21 lines
621 B
Ruby
Raw Normal View History

2021-08-11 20:04:55 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
boxes = [
{ :name => "ubuntu-hello-world-box", :box => "ubuntu/xenial64" },
{ :name => "debian-hello-world-box", :box => "debian/stretch64" },
{ :name => "centos-hello-world-box", :box => "geerlingguy/centos8" }
]
boxes.each do |opts|
config.vm.define opts[:name] do |config|
config.vm.box = opts[:box]
if opts[:name] == boxes.last[:name]
config.vm.provision "ansible" do |ansible|
ansible.playbook = "test-playbook.yml"
ansible.limit = "all"
end
end
end
end
end