summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-04-11 12:46:34 -0400
committerMicah Anderson <micah@riseup.net>2011-04-11 12:46:34 -0400
commit777233afea7d3d781e72b75f1bdfd394efe11b23 (patch)
tree25164faaefd3ba395cd6effe1dc9b7ff18fd6040
parentd752695d04bee773ea1681d1cb8cfbd79d9ac74d (diff)
add $use_nagios variable to automatically setup nagios checks of the git-daemon
-rw-r--r--manifests/daemon.pp3
1 files changed, 3 insertions, 0 deletions
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}"; }
+ }
}