class nodo::subsystem::ups( $include = hiera('nodo::subsystem::ups::include', false), $ensure = hiera('nodo::subsystem::ups::ensure', 'present'), $type = hiera('nodo::subsystem::ups::type', 'usb'), $cable = hiera('nodo::subsystem::ups::cable', 'usb'), $dev = hiera('nodo::subsystem::ups::dev', '/dev/usb/hiddev0'), $nisip = hiera('nodo::subsystem::ups::nisip', '127.0.0.1'), $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'), $munin = hiera('nodo::subsystem::ups::munin', false) ) { case $include { true: { class { "apcupsd": upstype => $type, cable => $cable, device => $dev, nisip => $nisip, polltime => $polltime, onbatterydelay => $onbatterydelay, batterylevel => $batterylevel, minutes => $minutes, ensure => $ensure, } } } }