Reusable puppet modules for Debian Wheezy and Ubuntu Vivid Vervet.
curl -Ls https://raw.github.com/cargomedia/puppet-packages/master/scripts/puppet-install.sh | bash
Initial puppet run
To make agent able to pull from master, master needs to accept agent's certificate. Send certificate accept request from agent node by running:
puppet agent --test --server <puppet-master> --waitforcert 10 --tags bootstrap
On master: List certificates, pick correct and sign it:
puppet cert list puppet cert sign <cert-name>
It's recommended to write specs for newly developed modules and test them by running appropriate rake task.
All specs should be placed in
modules/<module-name>/spec/<spec-name>/spec.rb. This way they can be detected and form rake tasks.
Spec helper will also automatically apply all puppet manifests from the same dir (
To test specific module run
rake spec:<module-name>. To learn about other available tasks please run
Our test tasks recognize following rake options:
debug=truerunning puppet apply with
keep_box=truedo not roll back the vm to a clean state
gui=trueshow virtualbox GUI
os='Debian-7,Ubuntu-15.04'limit running specs to listed OS versions
retries=NUMhow many times to re-run a failed spec (default: 0)