Comments inline.

On Thursday, July 12, 2012 3:08:10 PM UTC-5, Ryan Coleman wrote:
>
> One way to approach this (for documentation) is to build a file 
> resource backed by a template. The template would contain something 
> like the following. It prints out all the classes defined in that 
> agents catalog. 
>
>
I'm not really wanting a listing of classes currently applied to a given 
node.

I am wanting to get a listing of every class that is defined and available 
to be used in node defs.

 

> <% classes.each do |klass| -%> 
> The class <%= klass %> is defined 
> <% end -%> 
>
> This example could be used to build something like /etc/motd on each 
> system with the list of defined classes. 
>
> As for Dashboard, if you chose to use it as your ENC, the class 
> information is already there. Otherwise, that's not something you can 
> really do (afaik) outside of a custom fact that each machine populates 
> into the Dashboards inventory service. 
>
>
The class info is not already there, it only sees and can use classes that 
you define either through it's web UI or by inserting directly into it's DB.
 

> HTH, 
> --Ryan 
>
> On Thu, Jul 12, 2012 at 8:54 AM, llowder wrote: 
> > Is there a way to get a list of all the classes available from the 
> puppet 
> > master? 
> > 
> > I have 2 goals for this - one is documentation in a human readable form, 
> and 
> > the other is potentially importing that data into dashboard. 
> > 
> > I did find some info on the rest API 
> > (http://docs.puppetlabs.com/guides/rest_api.html#resource-types ) but I 
> > can't make any sense of the output from it. 
> > 
> > Thanks. 
> > 
> > Lee 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Puppet Users" group. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/puppet-users/-/wmJFsgZDA8sJ. 
> > 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. 
>
>
>
> -- 
> Ryan Coleman | about.me/ryc 
> Modules & Forge @ Puppet Labs 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/aQ2szZ_TnUcJ.
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