Kuma: Configure per-device interval
This commit is contained in:
parent
01c14bd9f6
commit
3ec96eb1b3
2
ansible/group_vars/all/kuma.yaml
Normal file
2
ansible/group_vars/all/kuma.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
heartbeat_timer_interval: 300
|
2
ansible/host_vars/thonkpad.ka.chaoswg.org/override.yaml
Normal file
2
ansible/host_vars/thonkpad.ka.chaoswg.org/override.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
heartbeat_timer_interval: 60
|
@ -246,7 +246,7 @@
|
||||
name: "{{ inventory_hostname }}"
|
||||
description: "Managed by Ansible"
|
||||
type: push
|
||||
interval: 330
|
||||
interval: "{{ heartbeat_timer_interval|mandatory + 30 }}"
|
||||
maxretries: 2
|
||||
notification_names:
|
||||
- "Kuma Statusmonitor"
|
||||
|
@ -1,9 +1,9 @@
|
||||
[Unit]
|
||||
Description=Send heartbeat every 5 minutes
|
||||
Description=Notify Kuma that this node is alive
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:00/5:00
|
||||
Persistent=true
|
||||
OnActiveSec={{ heartbeat_timer_interval }}
|
||||
OnUnitActiveSec={{ heartbeat_timer_interval }}
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
Loading…
Reference in New Issue
Block a user