1 2 3 4 5 6 7 8 9 10 11 12 13
class ups { include apcupsd case $has_ups { true: { apcupsd:ups { "ups0" type => 'usb', cable => 'usb', device => '/dev/usb/hiddev0', } } } }