From eb228e997a89e8909ea5715a8f413881e09177b8 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 16 Feb 2021 08:04:40 +0100 Subject: [PATCH] apcupsd polltime als Variable --- group_vars/proxmox.yml | 4 ++-- roles/mgrote.apcupsd/defaults/main.yml | 1 + roles/mgrote.apcupsd/templates/slave_apcupsd.conf | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/group_vars/proxmox.yml b/group_vars/proxmox.yml index 259d9969..def6b36c 100644 --- a/group_vars/proxmox.yml +++ b/group_vars/proxmox.yml @@ -15,8 +15,8 @@ smart_smartctlmail_cron_weekday: "3" ### mgrote.zfs_extra # Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_* zfs_extra_max_usage_health: "80" - - + ### mgrote.apcupsd + apcupsd_slave_polltime: 10 #in Sekunden # Ansible Variablen ### sudo diff --git a/roles/mgrote.apcupsd/defaults/main.yml b/roles/mgrote.apcupsd/defaults/main.yml index 8919ab18..ebf4881b 100644 --- a/roles/mgrote.apcupsd/defaults/main.yml +++ b/roles/mgrote.apcupsd/defaults/main.yml @@ -8,6 +8,7 @@ apcupsd_slave_batterylevel_for_shutdown: 60 apcupsd_slave_minutes_for_shutdown: 11 apcupsd_slave_nologon_when_active: always + apcupsd_slave_polltime: 10 #in Sekunden apcupsd_nis_master: on apcupsd_nis_master_hostname: pve2.grote.lan diff --git a/roles/mgrote.apcupsd/templates/slave_apcupsd.conf b/roles/mgrote.apcupsd/templates/slave_apcupsd.conf index 9a305f18..35bc0c33 100644 --- a/roles/mgrote.apcupsd/templates/slave_apcupsd.conf +++ b/roles/mgrote.apcupsd/templates/slave_apcupsd.conf @@ -7,7 +7,7 @@ DEVICE {{ apcupsd_nis_master_hostname }}:{{ apcupsd_nis_master_listen_port }} LOCKFILE /var/lock UPSCLASS standalone UPSMODE disable -POLLTIME 10 +POLLTIME {{ apcupsd_slave_polltime }} ONBATTERYDELAY {{ apcupsd_slave_onbatterydelay }} BATTERYLEVEL {{ apcupsd_slave_batterylevel_for_shutdown }}