puppet-parser(8) - Linux man page
Name
puppet-parser - Interact directly with the parser.Synopsis
puppet parser actionOptions
See the configuration file documentation at http://docs.puppetlabs.com/references/stable/configuration.html for the full list of acceptable parameters. A commented list of all configuration options can also be generated by running puppet with --genconfig.
- --mode MODE
- The run mode to use for the current action. Valid modes are user, agent, and master.
- --render-as FORMAT
- The format in which to render output. The most common formats are json, s (string), yaml, and console, but other options such as dot are sometimes available.
- --verbose
- Whether to log verbosely.
- --debug
- Whether to log debug information.
Actions
- validate - Validate the syntax of one or more Puppet manifests.
- SYNOPSIS
- puppet parser validate [manifest] [manifest ...]
- DESCRIPTION
- This action validates Puppet DSL syntax without compiling a catalog or syncing any resources. If no manifest files are provided, it will validate the default site manifest.
- RETURNS
- Nothing, or the first syntax error encountered.
- DESCRIPTION
Examples
validateValidate the default site manifest at /etc/puppet/manifests/site.pp:
$ puppet parser validate
Validate two arbitrary manifest files:
$ puppet parser validate init.pp vhost.pp