4 Vagrant.configure("2") do |config|
5 config.vm.synced_folder "..", "/FOAM-sources"
7 config.vm.hostname="vagrant."+ (ENV["HOSTNAME"] || `hostname`.strip)
10 if ENV["WM_VAGRANT_CPUS"]
11 nrCPU=ENV["WM_VAGRANT_CPUS"].to_i
13 if ENV["WM_NCOMPPROCS"]
14 nrCPU=ENV["WM_NCOMPPROCS"].to_i/2
21 config.vm.provider :virtualbox do |vb|
22 # # Don't boot with headless mode
25 # # Use VBoxManage to customize the VM. For example to change memory:
26 # vb.customize ["modifyvm", :id, "--memory", "1024"]
28 # make sure each CPU has enough memory (at least .5 Gig per CPU. 2.5 Gig Minimum to run the testHarness)
29 vb.memory=512*[(1+nrCPU),5].max
33 config.vm.define :trusty do |trusty|
34 trusty.vm.box = "ubuntu/trusty64"
35 trusty.vm.box_check_update = true
36 trusty.vm.provision :shell do |s|
38 s.path = "initUbunutuScript.sh"
40 trusty.vm.hostname="trusty."+config.vm.hostname
44 config.vm.define :precise do |precise|
45 precise.vm.box = "hashicorp/precise64"
46 precise.vm.box_check_update = true
47 # precise.vm.box_url = "http://files.vagrantup.com/precise64.box"
48 precise.vm.provision :shell do |s|
50 s.path = "initUbunutuScript.sh"
52 precise.vm.hostname="precise."+config.vm.hostname
55 config.vm.define :centos65 do |centos65|
56 centos65.vm.box = "chef/centos-6.5"
57 centos65.vm.box_check_update = true
58 # centos65.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box"
59 centos65.vm.provision :shell do |s|
61 s.path = "initCentOSRHELScript.sh"
63 centos65.vm.hostname="centos65."+config.vm.hostname
66 config.vm.define :centos70 do |centos70|
67 centos70.vm.box = "matyunin/centos7"
68 centos70.vm.box_check_update = true
69 centos70.vm.provision :shell do |s|
71 s.path = "initCentOSRHELScript.sh"
73 centos70.vm.hostname="centos70."+config.vm.hostname
77 config.vm.define :lucid do |lucid|
78 lucid.vm.box = "lucid64"
79 lucid.vm.box_url = "http://files.vagrantup.com/lucid64.box"
80 lucid.vm.provision :shell do |s|
82 s.path = "initUbunutuScript.sh"
84 lucid.vm.hostname="lucid."+config.vm.hostname
88 config.vm.define :maverick do |maverick|
89 maverick.vm.box = "maverick64"
90 maverick.vm.box_url = "http://mathie-vagrant-boxes.s3.amazonaws.com/maverick64.box"
91 maverick.vm.provision :shell do |s|
93 s.path = "initUbunutuScript.sh"
95 maverick.vm.hostname="maverick."+config.vm.hostname
99 config.vm.define :freebsd92 do |freebsd92|
100 freebsd92.vm.box = "chef/freebsd-9.2"
101 freebsd92.vm.box_check_update = true
102 # freebsd92.vm.box_url = "https://wunki.org/files/freebsd-9.2-amd64-wunki.box"
103 # freebsd92.vm.box_url = "http://iris.hosting.lv/freebsd-9.2-i386.box"
104 freebsd92.vm.provision :shell do |s|
106 s.path = "initFreeBSDScript.sh"
108 freebsd92.vm.synced_folder "..", "/FOAM-sources", type: "rsync", rsync__exclude: "vagrantSandbox/"
109 freebsd92.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: "ccache4vm/"
110 freebsd92.vm.hostname="freebsd92."+config.vm.hostname
113 # legacy/experimental
114 config.vm.define :freebsd10 do |freebsd10|
115 freebsd10.vm.box = "chef/freebsd-10.0"
116 # freebsd10.vm.box = "arkadi/freebsd-10.0-i386"
117 freebsd10.vm.box_check_update = true
118 # freebsd10.vm.box = "freebsd10"
119 # freebsd10.vm.box_url = "https://wunki.org/files/freebsd-10.0-amd64-wunki.box"
120 # freebsd10.vm.box_url = "http://iris.hosting.lv/freebsd-10.0-i386.box"
121 freebsd10.vm.provision :shell do |s|
123 s.path = "initFreeBSDScript.sh"
126 freebsd10.vm.network :private_network, ip: "10.0.0.2"
129 freebsd10.vm.provider :virtualbox do |vb|
130 vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
131 vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
134 # use NFS for the synced folder
135 freebsd10.vm.synced_folder "..", "/FOAM-sources", :nfs => true
136 freebsd10.vm.synced_folder '.', '/vagrant', :nfs => true
138 freebsd10.vm.hostname="freebsd10."+config.vm.hostname
142 config.vm.define :opensuse12 do |opensuse12|
143 opensuse12.vm.box = "opensuse12"
144 opensuse12.vm.box_url = "http://sourceforge.net/projects/opensusevagrant/files/12.3/opensuse-12.3-64.box/download"
145 opensuse12.vm.provision :shell do |s|
146 s.args = "opensuse12"
147 s.path = "initOpenSUSEScript.sh"
149 opensuse12.vm.hostname="opensuse12."+config.vm.hostname
152 config.vm.define :opensuse13 do |opensuse13|
153 opensuse13.vm.box = "berendt/opensuse-13.1-x86_64"
154 opensuse13.vm.box_check_update = true
155 opensuse13.vm.provision :shell do |s|
156 s.args = "opensuse13"
157 s.path = "initOpenSUSEScript.sh"
159 opensuse13.vm.hostname="opensuse13."+config.vm.hostname
162 config.vm.define :archlinux do |archlinux|
163 archlinux.vm.box = "terrywang/archlinux"
164 archlinux.vm.box_check_update = true
165 archlinux.vm.provision :shell do |s|
167 s.path = "initArchlinuxScript.sh"
169 archlinux.vm.hostname="archlinux."+config.vm.hostname