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 }}"
|
name: "{{ inventory_hostname }}"
|
||||||
description: "Managed by Ansible"
|
description: "Managed by Ansible"
|
||||||
type: push
|
type: push
|
||||||
interval: 330
|
interval: "{{ heartbeat_timer_interval|mandatory + 30 }}"
|
||||||
maxretries: 2
|
maxretries: 2
|
||||||
notification_names:
|
notification_names:
|
||||||
- "Kuma Statusmonitor"
|
- "Kuma Statusmonitor"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Send heartbeat every 5 minutes
|
Description=Notify Kuma that this node is alive
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=*-*-* *:00/5:00
|
OnActiveSec={{ heartbeat_timer_interval }}
|
||||||
Persistent=true
|
OnUnitActiveSec={{ heartbeat_timer_interval }}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
Loading…
Reference in New Issue
Block a user