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