4 Vagrant.configure(2) do |config|
6 # Configure VM RAM and CPU for VirtualBox
7 config.vm.provider :virtualbox do |virtualbox|
8 virtualbox.memory = 1024
12 # Configure VM RAM and CPU for LibVirt
13 config.vm.provider :libvirt do |libvirt|
18 # Vagrantfile is for testing newly built boxes, don't spend time syncing
19 config.vm.synced_folder ".", "/vagrant", disabled: true
22 # Vagrant definitions for supported Packer builds, for easy import/testing
23 # NB: These definitions will only work after you build their respective boxes
31 # VirtualBox and CentOS
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"
44 # VirtualBox and Fedora 26
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"
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"
74 # LibVirt and Fedora 26
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"