-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
62 lines (51 loc) · 2.41 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. For a complete reference of
# configuration options, , please see the online documentation at
# vagrantup.com.
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "vr-master"
# Port for the main dashboard
config.vm.network "forwarded_port", guest: 8000, host: 8000
# Port for the khartoum fileserver
config.vm.network "forwarded_port", guest: 8001, host: 8001
# Ports for auto-deployed procs
config.vm.network "forwarded_port", guest: 5000, host: 5000
config.vm.network "forwarded_port", guest: 5001, host: 5001
config.vm.network "forwarded_port", guest: 5002, host: 5002
config.vm.network "forwarded_port", guest: 5003, host: 5003
config.vm.network "forwarded_port", guest: 5004, host: 5004
config.vm.network "forwarded_port", guest: 5005, host: 5005
config.vm.network "forwarded_port", guest: 5006, host: 5006
config.vm.network "forwarded_port", guest: 5007, host: 5007
config.vm.network "forwarded_port", guest: 5008, host: 5008
config.vm.network "forwarded_port", guest: 5009, host: 5009
config.vm.network "forwarded_port", guest: 5010, host: 5010
config.vm.network "forwarded_port", guest: 5011, host: 5011
config.vm.network "forwarded_port", guest: 5012, host: 5012
config.vm.network "forwarded_port", guest: 5013, host: 5013
config.vm.network "forwarded_port", guest: 5014, host: 5014
# The supervisord web interface
config.vm.network "forwarded_port", guest: 9001, host: 9001
# Use Puppet to ensure that certain system packages are installed in the VM
config.vm.provision :puppet, :module_path => "puppet/modules" do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "vr.pp"
puppet.facter = {
"fqdn" => "trusty64"
}
end
# Make the guest use the host for name resolution, so names on the VPN will
# work.
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id,
# Make the guest use the host for name resolution, so names on the VPN
# will work (assuming they work on the host).
"--natdnshostresolver1", "on",
# Allocate 2GB of RAM
"--memory", "2048"
]
end
end