This repository will hold some useful scripts that help with developing Puppet modules combined with Vagrant. All scripts are placed into /usr/bin so they can be called easily from the CLI.
This is, obviously, a work-in-progress and extra scripts will be greatly appreciated.
Use github to send pull requests or log issues.
Include it in your manifest/modules as such:
class { 'vagrant_helper_scripts': }
This script does the same as a 'vagrant provision ', but within Vagrant itself so you lose the overhead of Ruby/Vagrant parsing. From the Mac, it takes quite a while:
user@mac:~$ time vagrant provision ... 45.9s total
Inside the Vagrant box it's a lot faster:
root@box:~$ time vagrant_puppet_runonce.sh ... 15.4s total
There: you just cut down your testing time by factor 3x. Results will very depending on the size of your Puppet codebase.