-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
43 lines (32 loc) · 1.19 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
Vagrant::Config.run do |config|
name = 'norx'
memory = 4128 # 4 GB
box_url= 'http://files.vagrantup.com/precise64.box'
config.vm.box = 'precise64'
config.vm.box_url = box_url
config.vm.customize [
'modifyvm', :id,
'--name', name,
'--memory', memory
]
config.vm.host_name = "#{name}.local"
config.vm.forward_port 22, 2222 # SSH
config.vm.forward_port 3000, 3000 # Leaflet app
config.vm.forward_port 3001, 3001 # TileStache
config.vm.forward_port 5432, 5432 # Postgres
config.vm.forward_port 9200, 9200 # Elastic Search
config.vm.provision :shell, :inline => "sudo apt-get update && sudo apt-get install puppet -y"
config.vm.provision :puppet, :facter => { "vagrant" => "true" }, :module_path => "#{`pwd`.strip}/puppet/modules" do |puppet|
puppet.manifests_path = "#{`pwd`.strip}/puppet/manifests"
puppet.manifest_file = "site.pp"
end
config.vm.provision :shell do |sh|
sh.path = "./sh/base_setup.sh"
end
config.vm.provision :shell do |sh|
sh.path = "./sh/update.sh"
end
## Add this if you want to share a a folder from the host system
## Params: Logicial name, guest mount point, host mount point
#config.vm.share_folder "usbdisk", "/mnt/usbdisk", "/Volumes/map_data"
end