The tool `puppet parser validate` will [check the syntax of my Puppet manifests](http://docs.puppetlabs.com/references/latest/man/parser.html#ACTIONS):
[root@puppet3 ~]# puppet parser validate /etc/puppet/manifests/site.pp
Warning: The use of 'import' is deprecated at /etc/puppet/manifests/site.pp:18. See http://links.puppetlabs.com/puppet-import-deprecation
(at grammar.ra:610:in `_reduce_190')
Error: Could not parse for environment production: No file(s) found for import of 'nodes/*.pp' at /etc/puppet/manifests/site.pp:18
[root@puppet3 ~]#
And I can check my manifests against the Puppet Style Guide using `puppet-lint`:
[root@puppet3 ~]# puppet-lint /etc/puppet/modules/hosts/manifests/init.pp
WARNING: class not documented on line 1
[root@puppet3 ~]#
Is there a Puppet validation tool for Hiera or for my YAML files?
↧