On Mar 11, 2011, at 7:52 AM, Nick Moffitt wrote: >> I'm not sure what you mean by deduplicating. Puppet won't let you >> have duplicate *anything*, exported or not. If you mean "filtering", >> that's doable, but any non-trivial filtering rule will require to you >> write evil Puppet functions that hook into the internals. If you >> could provide us a reasonably detailed example, perhaps we could be of >> more help. > > All right, let's say I have a nagios check that has a new hostgroup. My > nagios configs fall out as a consequence of *use* to ensure that they > match the manifests 100%. So there's a define in the foo::monitoring > class that updates the local NRPE configs and then exports: > > 1. A request that a service exist, in a hostgroup provided, to > probe this check over NRPE. > 2. A request that the provided hostgroup exist. > 3. A request that the host's server-side definition include > membership in the provided hostgroup. > > 1. and 2. need to be unique globally. 3. only needs to be unique > per-host. All would benefit from behaving like the invocation of a > class, or the resolution of notifies down to a single event. Having > the ability to export "ensure X is Y" rather than "here is an X+Z=Y just > like thousands of others" would be helpful to me.
Oooooh, I see. You want to define the Nagios service in the same place the service is declared, and the hostgroup in the class. Yeah, that would be a sweet way to do it, but Puppet's manifest methodology is completely incapable of doing it. I've always wanted a reasonable way to collect the hostgroups from the various service/host definitions, but that's never been possible without deep magic. -- 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.