Oliver,
we use CSM hook-scripts to validate any ''.pp'' or ''.erb'' files and it
works perfectly.
I recommend you look at INOTIFY kernel feature for wait for I/O events in
puppet modules directory. You can do that trought INCROND (
http://linux.die.net/man/8/incrond - crontab like) or homemade scri
Part of my rollout scripts contains a "puppet --parseonly" check of
all of our manifests and modules to do basic pre-runtime checks of
syntax (or so I thought). It basically finds all applicable modules
and echos an "import $MODULENAME" for each to the standard input of
puppet, to which I also pass