Cluster sanity test using openflow plugin
[integration/test.git] / test / tools / VM_Tool / 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 VirtualBox configuration
13   # --------------------------------
14   config.vm.provider "virtualbox" do |vb|
15     # Set RAM in MB
16     vb.memory = $MEMORY
17     # Set num CPU cores
18     vb.cpus = $CPU
19   end
20
21   # --------------------------
22   # Configuration for CentOS 7
23   # --------------------------
24   config.vm.define "centos" do |centos|
25     # Build Vagrant box based on CentOS 7
26     centos.vm.box = "chef/centos-7.0"
27     # Set hostname of box
28     centos.vm.hostname = "tools-centos"
29     # Enable X11 SSH forwarding for GUI applications
30     config.ssh.forward_x11 = "true"
31     # Use shell provisioner to install additional packages
32     centos.vm.provision "shell", path: "scripts/centos.sh"
33
34     # Install OpenDaylight using its Puppet module
35     centos.vm.provision "puppet" do |puppet|
36       puppet.module_path = ["modules"]
37       puppet.manifest_file = "odl_install.pp"
38     end
39
40     # VirtualBox configuration specific to this box
41     centos.vm.provider "virtualbox" do |vb|
42       # Name of VirtualBox guest machine
43       vb.name = "Integration Tools: CentOS-7"
44     end
45   end
46
47   # ----------------------------------
48   # Configuration for Ubuntu 14.04 LTS
49   # ----------------------------------
50   config.vm.define "ubuntu" do |ubuntu|
51     # Build Vagrant box based on Ubuntu 14.04
52     ubuntu.vm.box = "ubuntu/trusty64"
53     # Set hostname of box
54     ubuntu.vm.hostname = "tools-ubuntu"
55     # Enable X11 SSH forwarding for GUI applications
56     ubuntu.ssh.forward_x11 = "true"
57     # Use shell provisioner to install additional packages
58     #ubuntu.vm.provision "shell", path: "scripts/ubuntu.sh"
59
60     # VirtualBox configuration specific to this box
61     ubuntu.vm.provider "virtualbox" do |vb|
62       # Name of VirtualBox guest machine
63       vb.name = "Integration Tools: Ubuntu-14.04"
64     end
65   end
66 end