|
@@ -89,8 +89,13 @@ UPSCABLE usb
|
|
|
# that apcupsd binds to that particular unit
|
|
|
# (helpful if you have more than one USB UPS).
|
|
|
#
|
|
|
+{% if ups_primary == '' %}
|
|
|
UPSTYPE usb
|
|
|
DEVICE
|
|
|
+{% else %}
|
|
|
+UPSTYPE net
|
|
|
+DEVICE {{ ups_primary }}:3551
|
|
|
+{% endif %}
|
|
|
|
|
|
# POLLTIME <int>
|
|
|
# Interval (in seconds) at which apcupsd polls the UPS for status. This
|
|
@@ -99,7 +104,7 @@ DEVICE
|
|
|
# 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 {{ ups_polltime_seconds }}
|
|
|
|
|
|
# LOCKFILE <path to lockfile>
|
|
|
# Path for device lock file. This is the directory into which the lock file
|
|
@@ -138,7 +143,7 @@ NOLOGINDIR /etc
|
|
|
# ONBATTERYDELAY time. If you don't want to be annoyed by short
|
|
|
# powerfailures, make sure that apccontrol powerout does nothing
|
|
|
# i.e. comment out the wall.
|
|
|
-ONBATTERYDELAY 6
|
|
|
+ONBATTERYDELAY {{ ups_on_battery_delay_seconds }}
|
|
|
|
|
|
#
|
|
|
# Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so
|
|
@@ -148,12 +153,12 @@ ONBATTERYDELAY 6
|
|
|
# If during a power failure, the remaining battery percentage
|
|
|
# (as reported by the UPS) is below or equal to BATTERYLEVEL,
|
|
|
# apcupsd will initiate a system shutdown.
|
|
|
-BATTERYLEVEL 5
|
|
|
+BATTERYLEVEL {{ ups_shutdown_on_battery_percent }}
|
|
|
|
|
|
# If during a power failure, the remaining runtime in minutes
|
|
|
# (as calculated internally by the UPS) is below or equal to MINUTES,
|
|
|
# apcupsd, will initiate a system shutdown.
|
|
|
-MINUTES 5
|
|
|
+MINUTES {{ ups_shutdown_on_remaining_minutes }}
|
|
|
|
|
|
# If during a power failure, the UPS has run on batteries for TIMEOUT
|
|
|
# many seconds or longer, apcupsd will initiate a system shutdown.
|
|
@@ -167,15 +172,15 @@ MINUTES 5
|
|
|
# if you pull the power plug.
|
|
|
# If you have an older dumb UPS, you will want to set this to less than
|
|
|
# the time you know you can run on batteries.
|
|
|
-TIMEOUT 0
|
|
|
+TIMEOUT {{ ups_shutdown_timeout_seconds }}
|
|
|
|
|
|
# Time in seconds between annoying users to signoff prior to
|
|
|
# system shutdown. 0 disables.
|
|
|
-ANNOY 300
|
|
|
+ANNOY {{ ups_preshutdown_annoy_seconds }}
|
|
|
|
|
|
# Initial delay after power failure before warning users to get
|
|
|
# off the system.
|
|
|
-ANNOYDELAY 60
|
|
|
+ANNOYDELAY {{ ups_annoy_delay_seconds }}
|
|
|
|
|
|
# The condition which determines when users are prevented from
|
|
|
# logging in during a power failure.
|