Validate puppet code and erb templates
Before commit on your favorites versioning server, you MUST check for common syntax error on your puppet code (.pp files) and on your puppet template (.erb files).
You can do easly by launching this commands on your modified files:
# puppet parser validate manifests/changedcode.pp
and
# erb -x -T '-' templates/changedtemplate.erb | ruby -c
You must launch those commands from your module directory.
In the next days I'll show you a way to automatize this operations before the commit.
Written by Matteo Cappadonna
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Puppet
Authors
Related Tags
#puppet
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#