puppet-lint
Lint is the name given to a program that searches through code for non-ideal or nonportable syntax. The puppet-lint
tool is a Lint tool for Puppet code. It will go through your Puppet code and point out the code that has the potential to be a problem. By default, puppet-lint
uses the style-guide guidelines and will report problems such as lines that have more than 80 characters.
The puppet-lint
tool is a Ruby gem and can be installed using the gem
tool or as a package, depending on your distribution (for instance, Fedora calls this package rubygem-puppet-lint
). To install it using Puppet, run the following puppet resource
command:
$ sudo puppet resource package puppet-lint ensure=installed provider=gem Notice: /Package[puppet-lint]/ensure: ...
Get Troubleshooting Puppet now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.