morphit/ops/ansible/roles/ddns/templates/morphit-ddns.timer.j2

19 lines
651 B
Django/Jinja

# Morphit — dynamic DNS timer (ddns role). Checks the public IP shortly after
# boot and every few minutes; the updater only calls the provider when it
# changed. MANAGED BY ANSIBLE.
[Unit]
Description=Timer for morphit-ddns.service (keep your home DNS current)
Documentation=file:///opt/morphit/docs/RUN-A-MORPHIT-NODE.md
[Timer]
OnBootSec=1min
OnCalendar={{ morphit_ddns_on_calendar }}
# Fire on next activation if the box was asleep/off at a scheduled tick.
Persistent=true
AccuracySec=30s
# Smear a fleet of home nodes so they don't all hit the IP-echo services at the
# same instant.
RandomizedDelaySec=45s
[Install]
WantedBy=timers.target