forked from theteam/vagrant-django-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile.dist
37 lines (34 loc) · 1.49 KB
/
Vagrantfile.dist
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
Vagrant::Config.run do |config|
config.ssh.max_tries = 50
config.ssh.timeout = 300
#config.vm.boot_mode = :gui
# Machine Definitions
config.vm.define :base do |django_stack|
# Make sure the host_name contains the string 'vagrant'
# somewhere in it, as our puppet manifests use this
# to work out whether we're dealing with a development
# or production machine.
django_stack.vm.host_name = "vagrant-something"
django_stack.vm.box = "base"
django_stack.vm.box_url = "http://files.vagrantup.com/lucid64.box"
# Enable the Puppet provisioner
django_stack.vm.provision :puppet do |puppet|
puppet.manifests_path = "."
#puppet.module_path = ENV['PUPPET_MODULES_PATH']
puppet.module_path = ENV['VDT_HOME'] + "/modules"
# This should link to your projects manifest.
# By default we keep this in the same folder
# as the Vagrantfile and call it puppet-manifest.pp
puppet.manifest_file = "puppet-manifest.pp"
# Uncomment for more verbose debugging output.
#puppet.options = "--verbose --debug"
end
# Port forwarding to local machine.
django_stack.vm.forward_port("web", 80, 8000)
# Share a folder from the host machine with the guest.
# The 2nd parameter is where to mount the share within
# the guest, and the 3rd is the folder from the host to
# share (can be relative, like we have here).
django_stack.vm.share_folder("project-root", "/opt/client-name/project-name/src", "../../")
end
end