ntpd: Add support for constaints
This commit is contained in:
parent
92ec72b29b
commit
7a249edece
1 changed files with 9 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue