aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2009-12-19 17:59:54 -0500
committerMicah Anderson <micah@riseup.net>2009-12-19 17:59:54 -0500
commit5713073a1c2f19abac4ae9c783d64dc01a38eba9 (patch)
tree276c1792aa6d64bd30c390164bb2045f3620796a
parentd978e67d99a64251d3e2bc53826f4d96f3c97043 (diff)
downloadpuppet-backupninja-5713073a1c2f19abac4ae9c783d64dc01a38eba9.tar.gz
puppet-backupninja-5713073a1c2f19abac4ae9c783d64dc01a38eba9.tar.bz2
add a package definition for nsca underneath the $nagios_server block
this makes sure that the nsca package is installed, as it is a dependency for the nagios checks. It does not configure any of the nsca bits. In fact this should be done in a nagios::nsca class and instead this module should require that
-rw-r--r--manifests/server.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 54a283a..896bac0 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -24,6 +24,13 @@ class backupninja::server {
}
if $nagios_server {
+
+ if !defined(Package["nsca"]) {
+ package { "nsca":
+ ensure => installed;
+ }
+ }
+
file { "/usr/local/bin/checkbackups":
ensure => "present",
source => "puppet://$servername/backupninja/checkbackups.pl",