I want to do a syntax check of all our managed puppet manifests in rspec.
It's an easy way to generate build reports for use in a CI.
My first attempt looks like this:
Puppet::Face[:parser, '0.0.1'].validate('puppet/manifests/site.pp')
But this throws the following error:
Puppet::Error: Could not parse for environment production: Error
converting value for param 'modulepath': Could not find value for $confdir
at
/Users/jkyle/Projects/puppet/occam/puppet/manifests/site.pp:2
from
/Users/jkyle/.rvm/gems/ruby-2.0.0-p247@puppet/gems/puppet-3.3.0/lib/puppet/parser/parser_support.rb:166:in
`rescue in parse'
Even though the same file passes if tested via
puppet parser validate puppet/manifests/site.pp
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.