On Thu, 07 Jul 2011, Keith Minkler wrote:
For example, for setting up the proper nagios monitors, you'd want to say something like "if this machine has the apache class, then configure apache monitoring" It's not feasible I think to put this logic in the "apache" class, since you'd have to have a way to build up the nagios config file from parts contained in many classes which sometimes are installed together.
I would probably use a concatenated file for this. Define a function in the nagios class that means "please monitor this service using these parameters", and let the apache class call that. Behind the scenes, the nagios class would use concat and concat::fragment to do the work.
See <http://www.devco.net/archives/2010/02/19/building_files_from_fragments_with_puppet.php> for an example.
--apb (Alan Barrett) -- 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.