Skip to content

Instantly share code, notes, and snippets.

@johnpbloch
Created April 16, 2013 03:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnpbloch/5393116 to your computer and use it in GitHub Desktop.
Save johnpbloch/5393116 to your computer and use it in GitHub Desktop.
Puppet awesomesauce for Vagrant
[files]
path /tmp/vagrant-puppet/files
allow *
config.vm.provision :puppet do |puppet|
# Add a folder in your root named .ppt
puppet.manifests_path = ".ppt/manifests"
# vagrant.pp is your main manifest and goes in .ppt/manifests
puppet.manifest_file = "vagrant.pp"
# Add puppet modules in .ppt/modules as git submodules; they will be pre-installed in Vagrant this way
puppet.module_path = ".ppt/modules"
# Config files, etc. go in .ppt/files. fileserver.conf (see below) defines the path for puppet to add
# when looking for files. That way, you can reference files with puppet:// protocols. Make sure you
# add the directory defined in fileserver.conf as a shared directory in the main Vagrantfile config
# block.
puppet.options = ["--fileserverconfig=/vagrant/.ppt/fileserver.conf", ]
end
@loveybot
Copy link

Yay Ruby!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment