[Puppet Users] Parse puppet manifests in rspec tests

2013-09-15 Thread James Kyle
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:

Re: [Puppet Users] Parse puppet manifests in rspec tests

2013-09-15 Thread Henrik Lindberg
On 2013-16-09 24:05, James Kyle wrote: 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

[Puppet Users] Parse Puppet Manifests

2011-08-11 Thread Andrew Thompson
I am looking for a method to parse the entire set of puppet manifests/ modules. For example I want to see a list of all packages that I am managing with puppet. I have seen the compile option, but this only gives me a particular node's point of view. While I could just scrape all of the

Re: [Puppet Users] Parse Puppet Manifests

2011-08-11 Thread Henrik Lindberg
Don't know exactly what you are looking for, but you may be interested in http://cloudsmith.github.com/geppetto/ which is tooling for puppet development - editor with syntax coloring, cross-reference checking, module-dependency checking, etc. As Geppetto contains its own parser that creates a