nvr1: Add instructions to configure upsmon
*nvr1.pyrocufflink.blue* will run `upsmon` so it can shut itself down safely when the power goes out.master
parent
a919a9f94b
commit
ad42c2d883
|
@ -43,6 +43,18 @@ nut: schema.#Nut & {
|
|||
-----END AGE ENCRYPTED FILE-----
|
||||
"""
|
||||
}
|
||||
nvr1: {
|
||||
upsmon: "secondary"
|
||||
password: """
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAwRlhYRlVlR28zMk4vL0J5
|
||||
T3NnMi9mQWFCb1FkeWxQR2h2NGFqWHBtYlRZCmYrZG1CZ2lrU3pmMW5odUFPSGll
|
||||
TXFHZzZNTER4R1BrYUI1T0Y3YVo4SEEKLS0tIDVEQTg5czRuMUJXcUJNbWpYRnox
|
||||
emdFS01RYkxLekQ1TkJ0MGRuQ2Vsbk0KfRc5sHRfvc9F4Fh6wXI/cqeUc7/NRbP0
|
||||
bquJacJZGL1JkN06lK5d12d39Ud6j6/uZ7StCAyfG53Ol6HLThQtZw==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
"""
|
||||
}
|
||||
upsmon: {
|
||||
upsmon: "primary"
|
||||
password: """
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package nut0
|
||||
|
||||
import (
|
||||
"du5t1n.me/cfg/env/prod"
|
||||
"du5t1n.me/cfg/app/nut/schema"
|
||||
)
|
||||
|
||||
nut: monitor: schema.#NutMonitor
|
||||
|
||||
nut: monitor: prod.#nut_monitor & {
|
||||
#username: "nvr1"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package nvr1
|
||||
|
||||
import (
|
||||
"list"
|
||||
|
||||
"du5t1n.me/cfg/app/nut"
|
||||
)
|
||||
|
||||
render: list.Concat([
|
||||
nut.monitor.templates,
|
||||
])
|
Loading…
Reference in New Issue