class ups {
  include apcupsd

  case $has_ups {
    true: {
      apcupsd::ups { "ups0":
        upstype => 'usb',
        cable   => 'usb',
        device  => '/dev/usb/hiddev0',
      }
    }
  }
}