From: Micah Anderson Date: Sat, 19 Dec 2009 22:59:54 +0000 (-0500) Subject: add a package definition for nsca underneath the $nagios_server block X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5713073a1c2f19abac4ae9c783d64dc01a38eba9;p=puppet-backupninja.git 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 --- 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",