tweak NUT config
This commit is contained in:
parent
270f03a702
commit
9781bb161d
4
hosts
4
hosts
|
@ -36,8 +36,8 @@ all:
|
||||||
nut_client:
|
nut_client:
|
||||||
ups: liebert-psi
|
ups: liebert-psi
|
||||||
sched:
|
sched:
|
||||||
# We want to shutdown this server quick
|
# We want to shutdown this server quicker
|
||||||
on_bat: 15
|
on_bat: 60
|
||||||
bastion:
|
bastion:
|
||||||
hosts:
|
hosts:
|
||||||
bastion:
|
bastion:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
SUBSYSTEM!="usb", GOTO="nut-usbups_rules_end"
|
SUBSYSTEM!="usb", GOTO="nut-usbups_rules_end"
|
||||||
|
|
||||||
{% for name, config in nut_server.ups.items() %}
|
{% for name, config in nut_server.ups.items() %}
|
||||||
ACTION=="add|change", SUBSYSTEM=="usb|usb_device", SUBSYSTEMS=="usb|usb_device", ATTR{idVendor}=="{{ config.vendorid }}", ATTR{idProduct}=="{{ config.productid }}", MODE="664", GROUP="nut", RUN+="/sbin/upsdrvctl stop; /sbin/upsdrvctl start"
|
ACTION=="add|change", SUBSYSTEM=="usb|usb_device", SUBSYSTEMS=="usb|usb_device", ATTR{idVendor}=="{{ config.vendorid }}", ATTR{idProduct}=="{{ config.productid }}", MODE="664", GROUP="nut", RUN+="/sbin/upsdrvctl stop || /sbin/upsdrvctl start"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
LABEL="nut-usbups_rules_end"
|
LABEL="nut-usbups_rules_end"
|
Loading…
Reference in New Issue