I see your point...after looking at the classes.txt file it does have a lot more than what I want. I'm in particular looking for classes that affect app deployment/management for the engineers so they can easily see what is under puppet control...they don't need to need to see the myriad of OS level classes that are applied.
As the classes are defined via a mysql database (external node lookup script), I think the best way will be to use that same database somehow via another script run from the local host. I already call such a script to update the database with 'last puppet run' so this shouldn't be too much of an issue. thanks - jeff On Mar 4, 11:24 pm, Peter Meier <peter.me...@immerda.ch> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > I'm looking for an easy way to include the list of applied classes on > > a host in something like /etc/motd. using an .erb template would do > > the trick if I an array exists that has all the classes in it? > > Hopefully it's available? > > you find a list of the applied class on each host in > /var/lib/puppet/state/classes.txt . > > However I'm not sure if this is the right approach, as for example for > my environment on a moderate host I apply around 180 classes. This will > happen very fast if you structure your code properly into modules and > use inheritance to deal with os-specific things. > > I assume what you like to do is to display to a user logging into the > machine, what is managed on this host, right? So maybe you should get > this informaton out of something else than classes, as classes might > only represent a small part of a bigger thing that is managed. I don't > know how you decide in your manifests what to manage on a host, however > you might want to collect this information from there. > > cheers pete > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > iEYEARECAAYFAkuQsawACgkQbwltcAfKi38jOwCaA9Dl7K4d1QDw/fI1QM9qsBmo > UtcAnRW+rS2dp8nv6e4HXi/zcDrDOMYT > =82bO > -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.