The pdk validate command

The PDK provides pdk validate to check both syntax and style. Syntax checks make sure that your code can compile, and that you're not missing things such as commas or closing braces in manifests or JSON metadata. Syntax checks can also be performed manually on manifests with puppet parser validate. Style checking looks at the code to make sure that it adheres to a standard style guide. Puppet-lint is used to provide style checks to Puppet, and all of the rules can be found at When a module is healthy, the PDK will return check marks against all tasks:

$ pdk validatepdk (INFO): Running all available validators...pdk (INFO): Using Ruby 2.4.4pdk (INFO): Using Puppet 5.5.1[] Checking metadata ...

Get Mastering Puppet 5 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.