From 777233afea7d3d781e72b75f1bdfd394efe11b23 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 11 Apr 2011 12:46:34 -0400 Subject: add $use_nagios variable to automatically setup nagios checks of the git-daemon --- manifests/daemon.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 33c0a26..6d243d0 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -11,4 +11,7 @@ class git::daemon { include shorewall::rules::gitdaemon } + if $use_nagios { + nagios::service { "git-daemon": check_command "check_git!${fqdn}"; } + } } -- cgit v1.2.3