forked from rachelandrew/varnish4-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·44 lines (31 loc) · 1.43 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
# SETTINGS FOR BOX
# The folder on your computer that contains your websites, this will be mapped to /var/www on the box
CONFIG_WEBROOT = "/Users/rachel/Sites/vm"
# The private IP address used - this should be something that doesn't exist on your network
CONFIG_IP = "10.5.0.55"
# A name for this box
CONFIG_NAME = "varnish-tutorial"
# Memory this box should use
CONFIG_MEMORY = "1024"
# YOU PROBABLY DO NOT NEED TO CHANGE ANYTHING BELOW THIS LINE
Vagrant.configure("2") do |config|
config.vm.box = "debian73"
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-puppet.box"
config.vm.network :private_network, ip: CONFIG_IP
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", CONFIG_MEMORY]
v.customize ["modifyvm", :id, "--name", CONFIG_NAME]
end
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
config.vm.synced_folder CONFIG_WEBROOT, "/var/www", id: "vagrant-root" , :nfs => nfs_setting
config.vm.provision :shell, :inline => "sudo apt-get update"
# Enable the Puppet provisioner, point it to our files
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "site.pp"
puppet.module_path = "puppet/modules"
puppet.hiera_config_path = "puppet/hiera.yaml"
end
end