From 256f04298f993dc2f5175def6904e1133b34bc0e Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Tue, 18 Jan 2011 17:03:18 -0500 Subject: nagios::service : Pass on contact_groups The contact_groups argument to nagios::service is currently not passed on to the exported nagios_service resource. Pass this value on so that services can notify the right people. Signed-off-by: Gabriel Filion --- manifests/service.pp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'manifests') diff --git a/manifests/service.pp b/manifests/service.pp index 3e732b7..ffbbc72 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -53,6 +53,10 @@ define nagios::service ( Nagios_service["${real_name}"] { notification_options => $notification_options } } + if ($contact_groups != '') { + Nagios_service["${real_name}"] { contact_groups => $contact_groups } + } + if ($use == 'absent') { Nagios_service["${real_name}"] { use => 'generic-service' } } else { -- cgit v1.2.3