forked from kaorimatz/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
35 lines (28 loc) · 806 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Vagrant.configure('2') do |config|
7.times do
config.vm.network :private_network, type: :dhcp
end
Pathname.glob('*.json').sort.each do |template|
name = template.basename('.json').to_s
escaped_name = name.gsub(/[.]/, '_')
config.vm.define "#{escaped_name}-libvirt" do |c|
c.vm.box = name
c.vm.provider :libvirt do |v, override|
override.vm.synced_folder '', '/vagrant', disabled: true
end
end
config.vm.define "#{escaped_name}-virtualbox" do |c|
c.vm.box = name
c.vm.provider :virtualbox do |v|
v.name = name
v.gui = false
end
end
config.vm.define "#{escaped_name}-vmware_fusion" do |c|
c.vm.box = name
c.vm.provider :vmware_fusion do |v|
v.gui = false
end
end
end
end