Files
configpolicy/group_vars/nut/main.yml
Dustin C. Hatch 8b7b7b677d nut: Encrypt upsd user passwords with age
Switching from Ansible Vault to age.

I've changed the `upsd.users` template somewhat in order to handle the
`password` property separately.  Now, items in the `nut_users` list
are objects with properties instead of lists of objects with properties.
The latter was done to support repeating options (`actions` and
`instcmds`), but that is more appropriately handled with lists of
values.

This value is encrypted with the following public key:

    age1c6swn9tm0502jd3e0yszfd4qd7lgx2nd9uk0hruuckhx7zpn3utqhau7mz
2024-01-09 18:49:45 -06:00

38 lines
938 B
YAML

nut_users:
homeassistant:
password: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAxZUZleGt3emxXdDFtcEtN
Wll3K0hrS2c2M1oyMWh2VlBnMER0bkZOb1VVCnU3aTI2eVJoV1dKNWxEd0VnbVNa
NlMxVWRuZWpNbTJRVUhWR2w3bUlwaEUKLS0tIGZLcGNQRy9LNUF1Y0JzZEZGdXBn
bUJjYlBSSEYwRUpwemlMZ0xCZnpTS2cKUFke27YDeTME9OBgEcQdbJ3jsDZS43km
tK61kLMcexq3lXQb30gx4fzMuYa0MXFygawscTnxTrOrXUd36Iga4A==
-----END AGE ENCRYPTED FILE-----
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
}}