Justin Lambert
2011-Dec-07 15:26 UTC
[Puppet Users] Puppet Inventory Service - class search
I am looking to rewrite some modules that currently use storeconfigs (nagios being the big one) to instead pull from the inventory service the required information instead. Some of the checks are as easy as a monitoring check that gets put into place whenever a specific class is included. I know I can have my class install a fact I can then query for, but to remove the service i then need to also clean up that fact so it disappears from the monitoring service as well. I have looked at the mailing list, API reference, and inventory service page without success hoping to see a class_search (or something like it) to go along with the fact_search. Does this exist? Another idea I thought of is to have a fact that pulled in the classes.txt into one value (which would solve my removal issue), but there isn''t a textual operator for substr or in. Assuming that none of the above exist (and nobody has a different head smack easy solution), where is the inventory service in the puppet code and I will see if I can add a substr/in pattern match. Thanks, jl -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.