-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
21 lines (18 loc) · 711 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
def define_fedora_vm(config, version)
config.vm.define "fedora-#{version}" do |fedora|
fedora.vm.box = "fedora/#{version}-cloud-base"
fedora.vm.provision 'ansible' do |ansible|
ansible.playbook = 'tests/playbooks/fedora.yaml'
end
end
end
Vagrant.configure('2') do |config|
exclude = File.readlines('.gitignore').reject{|l| l.start_with? '#'}.map(&:strip).map(&Dir.method(:glob)).flatten(1)
config.vm.synced_folder '.', '/vagrant', type: :rsync, rsync__exclude: exclude
config.vm.provider :libvirt do |libvirt, override|
libvirt.memory = 1024
override.vm.synced_folder '.', '/vagrant', type: :nfs
end
define_fedora_vm config, '32'
define_fedora_vm config, '33'
end