-
Notifications
You must be signed in to change notification settings - Fork 6
/
Vagrantfile
33 lines (26 loc) · 1.2 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
# We need an rsync enabled version of Vagrant.
Vagrant.require_version('>= 1.5.1')
Vagrant.configure('2') do |config|
config.vm.box = 'hashicorp/precise64'
config.vm.hostname = 'localhost'
config.vm.provider :virtualbox do |v|
v.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
v.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
end
# The 80 port may be taken by an already running application, you can
# override it by specifying the PORT environment variable
config.vm.network :forwarded_port, guest: 80, host: ENV.fetch('PORT', 80)
# Mount the shared folder with rsync, so we get a faster performance for the
# applications.
config.vm.synced_folder '.', '/vagrant', type: 'rsync'
# Raise the open files limit to try to account for OSX + VirtualBox insanity.
config.vm.provision :shell, inline: 'ulimit -n 4048'
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.module_path = ['puppet/modules', 'puppet/vendor']
puppet.options = '--verbose --debug' if ENV['DEBUG']
end
# Let Vagrant start offline. You can always do manual `vagrant box update` if
# needed.
config.vm.box_check_update = false
end