aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",