ensure => installed,
}
- define ups($upstype = 'apcsmart', $cable = 'smart', $device = '/dev/ttyS0', $ensure = 'present') {
+ define ups($upstype = 'apcsmart', $cable = 'smart', $device = '/dev/ttyS0', $ensure = 'present',
+ $nisip = '127.0.0.1', $polltime = '60') {
$ups_configured = $ensure ? {
'present' => 'yes',
# will improve apcupsd's responsiveness to certain events at the cost of
# higher CPU utilization. The default of 60 is appropriate for most
# situations.
-#POLLTIME 60
+POLLTIME <%= polltime %>
# LOCKFILE <path to lockfile>
# Path for device lock file. Not used on Win32.
# NIS will listen for connections only on that interface. Use the
# loopback address (127.0.0.1) to accept connections only from the
# local machine.
-NISIP 127.0.0.1
+NISIP <%= nisip %>
# NISPORT <port> default is 3551 as registered with the IANA
# port to use for sending STATUS and EVENTS data over the network.