nut: Add playbook for NUT
NUT runs on *serial0.pyrocufflink.blue* and monitors the two UPSes on the server rack.
This commit is contained in:
28
group_vars/nut/main.yml
Normal file
28
group_vars/nut/main.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
nut_users:
|
||||
homeassistant:
|
||||
- password: '{{ vault_nut_user_passwords.homeassistant }}'
|
||||
nut_ups:
|
||||
apc1500:
|
||||
- driver: usbhid-ups
|
||||
- port: auto
|
||||
- desc: Back-UPS XS 1500G
|
||||
- vendorid: 051d
|
||||
- product: .*1500G.*
|
||||
- pollonly: enabled
|
||||
- pollinterval: 1
|
||||
apc1300:
|
||||
- driver: usbhid-ups
|
||||
- port: auto
|
||||
- desc: Back-UPS XS 1300G
|
||||
- vendorid: 051d
|
||||
- product: .*1300G.*
|
||||
- pollonly: enabled
|
||||
- pollinterval: 1
|
||||
collectd_nut_ups: >-
|
||||
{{
|
||||
["localhost"]
|
||||
| product(nut_ups.keys())
|
||||
| map("reverse")
|
||||
| map("join", "@")
|
||||
| list
|
||||
}}
|
||||
Reference in New Issue
Block a user