$polltime = hiera('nodo::subsystem::ups::polltime', '60'),
$onbatterydelay = hiera('nodo::subsystem::ups::onbatterydelay', '6'),
$batterylevel = hiera('nodo::subsystem::ups::batterylevel', '5'),
- $minutes = hiera('nodo::subsystem::ups::minutes', '3')
+ $minutes = hiera('nodo::subsystem::ups::minutes', '3'),
+ $munin = hiera('nodo::subsystem::ups::munin', false)
) {
case $include {
true: {
# Graph local UPS
munin::plugin { 'apc_nis':
- ensure => $nisip ? {
- '127.0.0.1' => present,
- '0.0.0.0' => present,
- 'localhost' => present,
- default => absent,
+ ensure => $munin ? {
+ true => present,
+ default => absent,
}
}
}