Test and fix your Puppet code with Puppet Lint

Puppet Lint is a nice tool to check the syntax of your Puppet code. Common errors can be fixed directly with Puppet Lint. It can also be included to CI tools like Jenkins if you want to check your Puppet code during a Jenkins build job for example.

Find out more about Puppet Lint here.

Test your Puppet custom fact

If you are creating a custom fact and want to test the output of your fact then you need to perform the following command:

$ FACTERLIB=/path/to/your/fact/ facter