O'Reilly logo

Troubleshooting Puppet by Thomas Uphill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required