Blog

manitest - a simple script to help your puppet development

Added by Ohad Levy 8 months ago

If it happened to you before that someone broke your manifest because of simple change (e.g. didn't test it on all hosts/classes external nodes ... combinations) this tool might be useful to you.

The idea is very simple, just try to compile the manifest based on customized facts, classes, environments and external nodes parameters (if you use it) .
You need to run this script only were you develop your manifests (e.g. your puppetmaster), there is no need to try out a puppet run on each and every system type that you have.

You might also find it useful to run this script in some sort of a cron or via a repo hook, to find out any broken manifests running around..

This script was originally written by a colleague of mine (Paul Kelly), however, I've adjusted it to hopefully common usage.

Its brand new, so any comments / improvements (which I'm sure there are plenty) are welcomed.

Hopefully you'll find it useful,
Ohad

http://github.com/ohadlevy/manitest