]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
add a package definition for nsca underneath the $nagios_server block
authorMicah Anderson <micah@riseup.net>
Sat, 19 Dec 2009 22:59:54 +0000 (17:59 -0500)
committerMicah Anderson <micah@riseup.net>
Sat, 19 Dec 2009 22:59:54 +0000 (17:59 -0500)
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

manifests/server.pp

index 54a283a75f7c5d21998af50e485e7eb63e3c20df..896bac0c0fc720fdb631556646b72b9b920b1982 100644 (file)
@@ -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",