-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
38 lines (30 loc) · 1.1 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 :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.150"
#
# Install puppet > 3
#
config.vm.provision :shell, :path => 'puppet.sh'
config.vm.provider :virtualbox do |vb|
# Fixes a problem with DNS in the guest
vb.customize [
"modifyvm", :id,
"--memory", 4096,
]
end
#
# Now that puppet > 3 is installed, download a couple of required modules
# then run puppet-saio.
#
config.vm.provision :shell do |shell|
shell.inline = "mkdir -p /etc/puppet/modules;
puppet module install puppetlabs/vcsrepo;
puppet module install puppetlabs/stdlib;
puppet apply --user vagrant --modulepath=/etc/puppet/modules:/vagrant/modules --manifestdir /vagrant/manifests --detailed-exitcodes /vagrant/manifests/site.pp"
end
end