dont depend on nagios-plugins-extra if ubuntu 18

This commit is contained in:
Erik Bergström 2018-05-15 12:59:46 +02:00
parent 49bcf4b5c0
commit b63d0889b4

View file

@ -529,8 +529,9 @@ class nrpe {
class {'apt::backports': }
}
package {'nagios-plugins-contrib': ensure => latest}
package {'nagios-plugins-extra': ensure => latest}
if ($::operatingsystem == 'Ubuntu' and $::operatingsystemrelease < '18.04') {
package {'nagios-plugins-extra': ensure => latest}
}
sunet::nagios::nrpe_command {'check_memory':
command_line => '/usr/lib/nagios/plugins/check_memory -w 10% -c 5%'
}