-
Notifications
You must be signed in to change notification settings - Fork 21
/
Vagrantfile
32 lines (26 loc) · 1.19 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "base"
config.vm.box_url = "http://urlforyourbasebox"
config.vm.provider :virtualbox do |vb|
# This allows symlinks to be created within the /vagrant root directory,
# which is something librarian-puppet needs to be able to do. This might
# be enabled by default depending on what version of VirtualBox is used.
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
# This shell provisioner installs librarian-puppet and runs it to install
# puppet modules. This has to be done before the puppet provisioning so that
# the modules are available when puppet tries to parse its manifests.
config.vm.provision :shell do |shell|
shell.path = "shell/librarian-puppet.sh"
# uncomment the next line if you want to install the librarian-ruby gem instead the package
# shell.args = "-g"
end
# Now run the puppet provisioner. Note that the modules directory is entirely
# managed by librarian-puppet
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "main.pp"
end
end