diff options
-rw-r--r-- | manifests/nrpe/base.pp | 7 |
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; |