forked from mgustafsson1/devbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
38 lines (31 loc) · 1.22 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::configure("2") do |config|
config.vm.provider :virtualbox do |vb|
vb.customize [
"modifyvm", :id,
"--memory", "1536",
"--cpus", "2",
"--ioapic", "on"
]
end
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.hostname = "devbox"
config.vm.synced_folder "www", "/var/www", :nfs => {
:mount_options => ['dmode=777,fmode=777']
}
# Set the Timezone to something useful
config.vm.provision :shell, :inline => "echo \"Europe/Berlin\" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata"
# Assign this VM to a host-only network IP, allowing you to access it
# via the IP. Host-only networks can talk to the host machine as well as
# any other machines on the same network, but cannot be accessed (through this
# network interface) by any external networks.
config.vm.network :private_network, ip: "192.168.3.3"
config.vm.provision :puppet do |puppet|
puppet.facter = { "fqdn" => "local.devbox", "hostname" => "devbox" }
puppet.manifests_path = "manifests"
puppet.manifest_file = "base.pp"
puppet.module_path = "modules"
end
end