Skip to content

Testing Puppet syntax without running puppetd

Use the --parseonly (puppet.conf manpage: “just check the syntax of the manifests”) and --ignoreimport (“enables you to parse-check a single file rather than requiring that all files exist”) flags to the puppet comand:

> puppet --parseonly --ignoreimport <filename.pp>

Reference: Puppet

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*