From 5713073a1c2f19abac4ae9c783d64dc01a38eba9 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sat, 19 Dec 2009 17:59:54 -0500 Subject: 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 --- manifests/server.pp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'manifests/server.pp') 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", -- cgit v1.2.3