Fix Packer Vagrantfile libvirt box names, add 5.1
[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   # Beryllium Release through SR4
35   (0..4).each do |i|
36     config.vm.define "cent_odl4#{i}_vb" do |cent_odl_vb|
37       cent_odl_vb.vm.box = "cent_odl4#{i}_vb"
38       cent_odl_vb.vm.box_url = "file://opendaylight-4.#{i}.0-centos-7.2.1511-virtualbox.box"
39     end
40   end
41
42   # Boron Release
43   (0..1).each do |i|
44     config.vm.define "cent_odl5#{i}_vb" do |cent_odl_vb|
45       cent_odl_vb.vm.box = "cent_odl5#{i}_vb"
46       cent_odl_vb.vm.box_url = "file://opendaylight-5.#{i}.0-centos-7.2.1511-virtualbox.box"
47     end
48   end
49
50   #
51   # VirtualBox and Fedora 24
52   #
53
54   (0..4).each do |i|
55     config.vm.define "f24_odl4#{i}_vb" do |f24_odl_vb|
56       f24_odl_vb.vm.box = "f24_odl4#{i}_vb"
57       f24_odl_vb.vm.box_url = "file://opendaylight-4.#{i}.0-fedora-24-virtualbox.box"
58     end
59   end
60
61   (0..1).each do |i|
62     config.vm.define "f24_odl5#{i}_vb" do |f24_odl_vb|
63       f24_odl_vb.vm.box = "f24_odl5#{i}_vb"
64       f24_odl_vb.vm.box_url = "file://opendaylight-5.#{i}.0-fedora-24-virtualbox.box"
65     end
66   end
67
68   #
69   # LibVirt
70   #
71
72   #
73   # LibVirt and CentOS
74   #
75
76   # Beryllium Release through SR4
77   (0..4).each do |i|
78     config.vm.define "cent_odl4#{i}_lv" do |cent_odl_lv|
79       cent_odl_lv.vm.box = "cent_odl4#{i}_lv"
80       cent_odl_lv.vm.box_url = "file://opendaylight-4.#{i}.0-centos-7.2.1511-libvirt.box"
81     end
82   end
83
84   # Boron Release
85   (0..1).each do |i|
86     config.vm.define "cent_odl5#{i}_lv" do |cent_odl_lv|
87       cent_odl_lv.vm.box = "cent_odl5#{i}_lv"
88       cent_odl_lv.vm.box_url = "file://opendaylight-5.#{i}.0-centos-7.2.1511-libvirt.box"
89     end
90   end
91
92   #
93   # LibVirt and Fedora 24
94   #
95
96   (0..4).each do |i|
97     config.vm.define "f24_odl4#{i}_lv" do |f24_odl_lv|
98       f24_odl_lv.vm.box = "f24_odl4#{i}_lv"
99       f24_odl_lv.vm.box_url = "file://opendaylight-4.#{i}.0-fedora-24-libvirt.box"
100     end
101   end
102
103   (0..1).each do |i|
104     config.vm.define "f24_odl5#{i}_lv" do |f24_odl_lv|
105       f24_odl_lv.vm.box = "f24_odl5#{i}_lv"
106       f24_odl_lv.vm.box_url = "file://opendaylight-5.#{i}.0-fedora-24-libvirt.box"
107     end
108   end
109 end
110