-
Notifications
You must be signed in to change notification settings - Fork 7
/
Vagrantfile
45 lines (37 loc) · 1.01 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- mode: ruby -*-
# vi: set ft=ruby :
# ONOS + mininet + quagga
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.hostname = "onos"
config.vm.network "forwarded_port", guest: 8181, host: 8181
config.vm.network "private_network", type: "dhcp"
# Set the name of the VM. See: http://stackoverflow.com/a/17864388/100134
config.vm.define :onos do |template|
end
# Use Virtual Box as provider
config.vm.provider "virtualbox" do |vbx|
vbx.name = "onos"
vbx.memory = 4096
vbx.cpus = 2
end
config.vm.provision "shell", inline: "sudo apt-get update -qq"
config.vm.provision "shell", inline: "sudo apt-get install -qq python2.7"
playbooks = [
"basic",
"docker",
"onos",
"mininet",
"quagga",
"sdnip",
"gobgp",
"ryu"
]
playbooks.each do |bookname|
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/#{bookname}/playbook.yml"
ansible.sudo = "true"
ansible.limit = "all"
end
end
end