vagrant-librarian-puppet-plugin
A Vagrant plugin to install Puppet modules using Librarian-Puppet.
Requirements
- Vagrant version 1.2.0 or greater.
Installation
vagrant plugin install vagrant-librarian-puppet-plugin
Usage
Vagrant will automatically run Librarian-Puppet before any provisioning step, so simply set up your Puppetfile as you normally would.
You may specify the subdirectory within which to run librarian-puppet
using the librarian_puppet.puppetfile_dir config key. Please keep in mind
that you will need to explicitly set the modules path in the
:puppet provisioner and this path must exist before running vagrant commands:
Vagrant.configure("2") do |config|
config.librarian_puppet.puppetfile_dir = "puppet"
config.vm.provision :puppet do |puppet|
puppet.modules = "puppet/modules"
...
end
end
Development
bundle
bundle exec vagrant up
Acknowledgements
Thanks be to @jimmycuadra and other contributors for their work on vagrant-librarian-chef. This plugin made some slight changes to work with puppet, but largely just used their code.