Step 2: Move test folder to root
[integration/test.git] / tools / tools_vm / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 # Set memory value (MB) and number of CPU cores here
5 $MEMORY = "2048"
6 $CPU = "2"
7
8 # Initial Vagrant configuration
9 Vagrant.configure(2) do |config|
10
11   # ---------------------
12   # Shared configurations
13   # ---------------------
14
15   # Enables SSH X11 forwarding
16   config.ssh.forward_x11 = "true"
17
18   # VirtualBox configuration
19   config.vm.provider "virtualbox" do |vb|
20     # Set RAM in MB
21     vb.memory = $MEMORY
22     # Set num CPU cores
23     vb.cpus = $CPU
24   end
25
26   # ---------------------------
27   # Configuration for Fedora 20
28   # ---------------------------
29
30   # Multi-machine definition for Fedora
31   config.vm.define "fedora" do |fedora|
32     # Build Vagrant box based on Fedora 20
33     fedora.vm.box = "chef/fedora-20"
34     # Set hostname of box
35     fedora.vm.hostname = "tools-fedora"
36     # Use shell provisioner to install additional packages
37     fedora.vm.provision "shell", path: "scripts/fedora.sh", privileged: "false"
38
39     # Install OpenDaylight using its Puppet module
40     fedora.vm.provision "puppet" do |puppet|
41       puppet.module_path = ["modules"]
42       puppet.manifest_file = "odl_install.pp"
43     end
44
45     # VirtualBox configuration specific to this box
46     fedora.vm.provider "virtualbox" do |vb|
47       # Name for guest machine
48       vb.name = "Integration Tools: Fedora 20"
49     end
50   end
51
52   # ----------------------------------
53   # Configuration for Ubuntu 14.04 LTS
54   # ----------------------------------
55
56   # Multi-machine definition for Ubuntu
57   config.vm.define "ubuntu" do |ubuntu|
58     # Build Vagrant box based on Ubuntu 14.04
59     ubuntu.vm.box = "ubuntu/trusty64"
60     # Set hostname of box
61     ubuntu.vm.hostname = "tools-ubuntu"
62     # Use shell provisioner to install additional packages
63     ubuntu.vm.provision "shell", path: "scripts/ubuntu.sh"
64
65     # VirtualBox configuration specific to this box
66     ubuntu.vm.provider "virtualbox" do |vb|
67       # Name for guest machine
68       vb.name = "Integration Tools: Ubuntu 14.04"
69     end
70   end
71 end