ntpd: Add support for constaints

This commit is contained in:
Timo Makinen 2025-07-24 18:33:04 +00:00
parent 92ec72b29b
commit 7a249edece

View file

@ -4,6 +4,15 @@
listen on {{ listen }}
{% endfor %}
{% endif %}
{% if ntpd_constraints is defined %}
# constraints
constraint from {% for constraint in ntpd_constraints -%}
{{ '"' + constraint + '"' -}}
{{ ', ' if not loop.last -}}
{% endfor %}
{% endif %}
# remote servers
{% for server in ntpd_servers %}