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

@@ -45,3 +45,14 @@ networkd_networks:
samba_interfaces:
- enp5s0
# Start shutting down the second VM host as soon as we lose the first UPS
nut_monitor_minsupplies: 2
nut_monitor_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
63386530636535613663666261393132346564613365613866353638316164386365383831363439
6437373831346664333965633936666437366338363034640a353532626531326639393938643463
33386261386430396639333961323864633030383232353063376264396332333162616336643739
6234323164393336620a396532313963353733663661393662313731363466316138633835386630
34653731336331653535333465393934323738613534643934346238646461323363363336326337
3937303465623136343730333033313766633863666539363462