summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-04-25 12:17:07 -0400
committerMicah Anderson <micah@riseup.net>2013-04-25 12:17:07 -0400
commit22ec34bca99709c8542a817158b5e96249972645 (patch)
tree3ec7a6ea4c5591c7533880d6c98fdc12f77d3cc1
parent7d910cc66ea98fea4e83a3d1003bb7c3a0c6a7ce (diff)
add requirement for perl module, and fix libwww to be more modular
-rw-r--r--README5
-rw-r--r--manifests/nrpe/base.pp4
2 files changed, 8 insertions, 1 deletions
diff --git a/README b/README
index 90a97c6..5453834 100644
--- a/README
+++ b/README
@@ -12,6 +12,11 @@ In it's current form, this module can be used on CentOS and Debian.
Overview
========
+Requirements
+------------
+
+To use the nrpe functionality, you will need the perl module installed.
+
To use the nagios resources, activate storeconfigs on the
puppetmaster.
diff --git a/manifests/nrpe/base.pp b/manifests/nrpe/base.pp
index 162abd6..3412f7e 100644
--- a/manifests/nrpe/base.pp
+++ b/manifests/nrpe/base.pp
@@ -4,7 +4,9 @@ class nagios::nrpe::base {
if $processorcount == '' { $processorcount = 1 }
# libwww-perl for check_apache
- package { [ 'nagios-nrpe-server', 'nagios-plugins-basic', 'libwww-perl' ]:
+ include perl::extensions::libwww
+
+ package { [ 'nagios-nrpe-server', 'nagios-plugins-basic' ]:
ensure => present;
}