summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2011-01-18 17:03:18 -0500
committerGabriel Filion <lelutin@gmail.com>2011-01-18 17:03:18 -0500
commit256f04298f993dc2f5175def6904e1133b34bc0e (patch)
treeadbfcfed0868b5be14cb560ebee6bd4509e1b0fb
parent5d5ec8c28d0fe39359af8db159b14faeae397e1f (diff)
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 <lelutin@gmail.com>
-rw-r--r--manifests/service.pp4
1 files changed, 4 insertions, 0 deletions
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 {