Helm charts for supporting clustering in ODL
[integration/packaging.git] / packer / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure(2) do |config|
5
6   # Configure VM RAM and CPU for VirtualBox
7   config.vm.provider :virtualbox do |virtualbox|
8     virtualbox.memory = 1024
9     virtualbox.cpus = 1
10   end
11
12   # Configure VM RAM and CPU for LibVirt
13   config.vm.provider :libvirt do |libvirt|
14     libvirt.memory = 1024
15     libvirt.cpus = 1
16   end
17
18   # Vagrantfile is for testing newly built boxes, don't spend time syncing
19   config.vm.synced_folder ".", "/vagrant", disabled: true
20
21   #
22   # Vagrant definitions for supported Packer builds, for easy import/testing
23   # NB: These definitions will only work after you build their respective boxes
24   #
25
26   #
27   # VirtualBox
28   #
29
30   #
31   # VirtualBox and CentOS
32   #
33
34   (5..6).each do |major|
35     (0..4).each do |minor|
36       config.vm.define "cent_odl#{major}#{minor}_vb" do |cent_vb|
37         cent_vb.vm.box = "cent_odl#{major}#{minor}_vb"
38         cent_vb.vm.box_url = "file://opendaylight-#{major}.#{minor}.0-centos-7.3.1611-virtualbox.box"
39       end
40     end
41   end
42
43   #
44   # VirtualBox and Fedora 26
45   #
46
47   (5..6).each do |major|
48     (0..4).each do |minor|
49       config.vm.define "f26_odl#{major}#{minor}_vb" do |f26_vb|
50         f26_vb.vm.box = "f26_odl#{major}#{minor}_vb"
51         f26_vb.vm.box_url = "file://opendaylight-#{major}.#{minor}.0-fedora-26-virtualbox.box"
52       end
53     end
54   end
55
56   #
57   # LibVirt
58   #
59
60   #
61   # LibVirt and CentOS
62   #
63
64   (5..6).each do |major|
65     (0..4).each do |minor|
66       config.vm.define "cent_odl#{major}#{minor}_lv" do |cent_lv|
67         cent_lv.vm.box = "cent_odl#{major}#{minor}_lv"
68         cent_lv.vm.box_url = "file://opendaylight-#{major}.#{minor}.0-centos-7.3.1611-libvirt.box"
69       end
70     end
71   end
72
73   #
74   # LibVirt and Fedora 26
75   #
76
77   (5..6).each do |major|
78     (0..4).each do |minor|
79       config.vm.define "f26_odl#{major}#{minor}_lv" do |f26_lv|
80         f26_lv.vm.box = "f26_odl#{major}#{minor}_lv"
81         f26_lv.vm.box_url = "file://opendaylight-#{major}.#{minor}.0-fedora-26-libvirt.box"
82       end
83     end
84   end
85 end