puppet parser questions

10 views
Skip to first unread message

llowder

unread,
Sep 21, 2012, 10:37:27 AM9/21/12
to puppe...@googlegroups.com
Are there any documents available that discuss how to use the puppet parser from code, such as to make use of it in other projects?

I looked around the puppet site, but did not find anything, though it is possible I just used the wrong search terms.

I'm getting ready to start developing some tools to help make creating/maintaining tests easier, and I'd like to use the actual puppet parser rather than try to roll my own.

Thank you.

Brice Figureau

unread,
Sep 21, 2012, 10:56:06 AM9/21/12
to puppe...@googlegroups.com
You can look to lib/puppet/util/rdoc/parser.rb in the puppet codebase.
This is what implements "puppet doc".
This parses a set of manifests and introspect the returned AST to build
rdoc data structure to produce documentation.
The specific is that it is designed to parse independently all the
manifests, instead of globally like puppet does usually.

--
Brice Figureau
Follow the latest Puppet Community evolutions on www.planetpuppet.org!

Reply all
Reply to author
Forward
0 new messages