Initial commit of vpp code.
[vpp.git] / build-root / vagrant / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure(2) do |config|
5
6   # Pick the right distro and bootstrap, default is ubuntu1404
7   distro = ENV['VPP_VAGRANT_DISTRO']
8   if distro == 'centos7'
9     config.vm.box = "puppetlabs/centos-7.0-64-nocm"
10     config.vm.provision 'shell', path: 'bootstrap.centos7.sh'
11   else
12     config.vm.box = "puppetlabs/ubuntu-14.04-64-nocm"
13     config.vm.provision 'shell', path: 'bootstrap.ubuntu1404.sh'
14   end
15
16   # vagrant-cachier caches apt/yum etc to speed subsequent
17   # vagrant up
18   # to enable, run
19   # vagrant plugin install vagrant-cachier
20   #
21   if Vagrant.has_plugin?("vagrant-cachier")
22     config.cache.scope = :box
23   end
24
25   config.vm.synced_folder "../../", "/vpp", disabled: false
26   config.vm.provider "virtualbox" do |vb|
27     vb.memory = "4096"
28   end
29   config.vm.provider "vmware_fusion" do |fusion,override|
30     fusion.vmx["memsize"] = "4096"
31   end
32   config.vm.provider "vmware_workstation" do |vws,override|
33     vws.vmx["memsize"] = "8192"
34     vws.vmx["numvcpus"] = "4"
35   end
36 end