apcupsd (#83)
* apsupsd: Parameter NOLOGON eingebaut * Typo * Housekeeping
This commit is contained in:
parent
eec397fa3e
commit
61fee4af86
6 changed files with 9 additions and 8 deletions
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
### oefenweb.ufw
|
|
||||||
ufw_rules:
|
|
||||||
- rule: allow
|
|
||||||
interface: ens18
|
|
||||||
- rule: allow
|
|
||||||
interface: ens19
|
|
|
@ -30,6 +30,7 @@
|
||||||
ONBATTERYDELAY: 10
|
ONBATTERYDELAY: 10
|
||||||
BATTERYLEVEL: 50
|
BATTERYLEVEL: 50
|
||||||
MINUTES: 10
|
MINUTES: 10
|
||||||
|
NOLOGON: disable
|
||||||
### mgrote.zfs_tools
|
### mgrote.zfs_tools
|
||||||
zfs_arc_max: "12884901888"
|
zfs_arc_max: "12884901888"
|
||||||
zfs_pool:
|
zfs_pool:
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
### Beschreibung
|
### Beschreibung
|
||||||
Installiert APCUPSD fuer eine APC UPS mit USB Verbindung.
|
Installiert APCUPSD fuer eine APC UPS mit USB Verbindung.
|
||||||
Benoetigt mgrote.postfix-gmail.
|
Benoetigt mgrote.postfix-gmail.
|
||||||
|
https://linux.die.net/man/5/apcupsd.conf
|
||||||
|
|
||||||
### Funktioniert auf
|
### Funktioniert auf
|
||||||
- [x] ProxMox 6.1
|
- [x] ProxMox 6.1
|
||||||
|
@ -19,3 +20,6 @@ BATTERYLEVEL: 50
|
||||||
|
|
||||||
##### apcupsd will shutdown the system during a power failure when the remaining runtime on batteries as internally calculated by the UPS falls below the specified minutes.
|
##### apcupsd will shutdown the system during a power failure when the remaining runtime on batteries as internally calculated by the UPS falls below the specified minutes.
|
||||||
MINUTES: 10
|
MINUTES: 10
|
||||||
|
|
||||||
|
##### Specifies when apcupsd should create the nologon file to prevent users from logging on to the system.
|
||||||
|
NOLOGON: always
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
ONBATTERYDELAY: 10
|
ONBATTERYDELAY: 10
|
||||||
BATTERYLEVEL: 50
|
BATTERYLEVEL: 50
|
||||||
MINUTES: 10
|
MINUTES: 10
|
||||||
|
NOLOGON: always
|
||||||
|
|
|
@ -27,4 +27,4 @@
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "apcupsd.conf"
|
src: "apcupsd.conf"
|
||||||
dest: "/etc/apcupsd/apcupsd.conf"
|
dest: "/etc/apcupsd/apcupsd.conf"
|
||||||
notify: restart_apcupsd #benachrchtigt handlers/main.yml-restart-apcupsd_restart um den dient neuzustarten, nur wenn hier status "changed" ausgeworfen wird"
|
notify: restart_apcupsd #benachrichtigt handlers/main.yml-restart-apcupsd_restart um den dient neuzustarten, nur wenn hier status "changed" ausgeworfen wird"
|
||||||
|
|
|
@ -10,3 +10,5 @@ UPSNAME APC-BX950U-GR
|
||||||
ONBATTERYDELAY {{ ONBATTERYDELAY }}
|
ONBATTERYDELAY {{ ONBATTERYDELAY }}
|
||||||
BATTERYLEVEL {{ BATTERYLEVEL }}
|
BATTERYLEVEL {{ BATTERYLEVEL }}
|
||||||
MINUTES {{ MINUTES }}
|
MINUTES {{ MINUTES }}
|
||||||
|
|
||||||
|
NOLOGON {{ NOLOGON }}
|
||||||
|
|
Loading…
Reference in a new issue