Use Fedora vs CentOS for tools VM, add Ubuntu cfg script
[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 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 PTY for provisionning
37     fedora.ssh.pty = "True"
38     # Use shell provisioner to install additional packages
39     fedora.vm.provision "shell", path: "scripts/fedora.sh"
40
41     # Install OpenDaylight using its Puppet module
42     fedora.vm.provision "puppet" do |puppet|
43       puppet.module_path = ["modules"]
44       puppet.manifest_file = "odl_install.pp"
45     end
46
47     # VirtualBox configuration specific to this box
48     fedora.vm.provider "virtualbox" do |vb|
49       # Name for guest machine
50       vb.name = "Integration Tools: Fedora 20"
51     end
52   end
53
54   # ----------------------------------
55   # Configuration for Ubuntu 14.04 LTS
56   # ----------------------------------
57
58   # Multi-machine definition for Ubuntu
59   config.vm.define "ubuntu" do |ubuntu|
60     # Build Vagrant box based on Ubuntu 14.04
61     ubuntu.vm.box = "ubuntu/trusty64"
62     # Set hostname of box
63     ubuntu.vm.hostname = "tools-ubuntu"
64     # Use shell provisioner to install additional packages
65     ubuntu.vm.provision "shell", path: "scripts/ubuntu.sh"
66
67     # VirtualBox configuration specific to this box
68     ubuntu.vm.provider "virtualbox" do |vb|
69       # Name for guest machine
70       vb.name = "Integration Tools: Ubuntu 14.04"
71     end
72   end
73 end