diff options
author | Micah Anderson <micah@riseup.net> | 2011-04-11 12:46:34 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2011-04-11 12:46:34 -0400 |
commit | 777233afea7d3d781e72b75f1bdfd394efe11b23 (patch) | |
tree | 25164faaefd3ba395cd6effe1dc9b7ff18fd6040 | |
parent | d752695d04bee773ea1681d1cb8cfbd79d9ac74d (diff) |
add $use_nagios variable to automatically setup nagios checks of the git-daemon
-rw-r--r-- | manifests/daemon.pp | 3 |
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}"; } + } } |