summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <gabriel@koumbit.org>2011-02-15 19:11:01 -0500
committerGabriel Filion <lelutin@gmail.com>2012-04-09 23:49:18 -0400
commit7d9843fae4c939670f005661d5867578d0a0827e (patch)
treeec933c929c72d08db489fcf0873febeba89d0096
parentc9de09ece4508db6b216abd0f74f07ea7befe906 (diff)
Avoid the "libnagios-plugin-perl" package for lenny
This package doesn't exist on lenny.
-rw-r--r--manifests/nrpe/base.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/nrpe/base.pp b/manifests/nrpe/base.pp
index d96dc3f..8636760 100644
--- a/manifests/nrpe/base.pp
+++ b/manifests/nrpe/base.pp
@@ -1,18 +1,21 @@
class nagios::nrpe::base {
if $nagios_nrpe_cfgdir == '' { $nagios_nrpe_cfgdir = '/etc/nagios' }
- if $nagios_nrpe_dont_blame == '' { $nagios_nrpe_dont_blame = 1 }
package { "nagios-nrpe-server": ensure => present;
"nagios-plugins-basic": ensure => present;
- "libnagios-plugin-perl": ensure => present;
"libwww-perl": ensure => present; # for check_apache
}
+ # Special-case lenny. the package doesn't exist
+ if $lsbdistcodename != 'lenny' {
+ package { "libnagios-plugin-perl": ensure => present; }
+ }
file { [ $nagios_nrpe_cfgdir, "$nagios_nrpe_cfgdir/nrpe.d" ]:
ensure => directory }
+ if $nagios_nrpe_dont_blame == '' { $nagios_nrpe_dont_blame = 1 }
file { "$nagios_nrpe_cfgdir/nrpe.cfg":
content => template('nagios/nrpe/nrpe.cfg'),
owner => root, group => 0, mode => 644;