An alternative is to use the Geppetto tool which parses puppet manifests into a model. There is a Java API for this model. It can also be serialized in other formats that allow processing in other languages.

I am interested in what "lint rules" you had in mind, maybe we could collaborate to get them into geppetto?

More info here: https://github.com/cloudsmith/geppetto

Regards
- henrik

On Mar 1, 2011, at 12:14 PM, Nick Moffitt wrote:

I mean to write a lint checker for my manifests, but I am not a ruby
developer to any degree of proficiency.  What I think I would like is
some kind of serialization of the AST for a given .pp file, which I can
then import into my own Python code and analyze for undesirable
patterns.

Is there any way to get a dump or serialization or marshalling of the
parse tree for a given .pp file?  Or is there already some
easily-modifiable lint checker elsewhere?

--
A: No.
Q: Should I put my reply above quoted text?

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en .


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to