-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
42 lines (29 loc) · 1.28 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
# 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.1.0.82"
# A name for this box
CONFIG_NAME = "perch-vagrant"
# Memory this box should use
CONFIG_MEMORY = "1024"
# DO NOT CHANGE ANYTHING BELOW THIS LINE
Vagrant.configure("2") do |config|
config.vm.box = "puppetlabs/ubuntu-14.04-64-puppet"
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.environment_path = "puppet/environments"
puppet.hiera_config_path = "hiera.yaml"
puppet.environment = "vagrant"
end
end