2011/8/14 Jérôme Loyet <jer...@loyet.net> > > > > 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 manifest files for this information with grep, etc., there > > > > must be something in the puppet code base I could plug into?? > > Hi, > > I'm looking for the exact same thing. I'm developping a RAILS > application which will have to parse an entire environment for > classes, modules and variables. This application will then ask the > user to map a node to classes and set parameters. All this > configuration will then be saved to a database in order to be read > from the puppet node classifier. > > I'm sure there everything in the puppet code (in ruby) to achieve this > but I didn't find it yet. If someone can point me somehting usefull, > it would be great. > > imho thats the wrong way of doing it.. I think that each class should extract somehow (metadata, rdoc style etc) the variables that should/could be manipulated externally. including their types, etc, this would simplify external interfaces with puppet and allow to create complex web forms to support the underlining puppet manifests.
FYI, it is in our foreman roadmap, so if it fits, you might not want to reinvent the wheel. Ohad > thx > > ++ Jerome > > -- > 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.