nut-monitor: Configure upsmon

`upsmon` is the component of [NUT] that monitors (local or remote) UPS
devices and reacts to changes in their state.  Notably, it is
responsible for powering down the system when there is insufficient
power to the system.
This commit is contained in:
2024-01-19 20:47:51 -06:00
parent f31018f514
commit 525f2b2a04
8 changed files with 542 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
nut_monitor:
- system: apc1300@nut.pyrocufflink.blue
powervalue: 1
username: '{{ ansible_hostname }}'
password: '{{ nut_monitor_password }}'
- system: apc1500@nut.pyrocufflink.blue
powervalue: 1
username: '{{ ansible_hostname }}'
password: '{{ nut_monitor_password }}'
nut_monitor_minsupplies: 1
nut_monitor_shutdowncmd: /sbin/shutdown -h +0