xoxys.chrony/templates/etc/chrony.conf.j2
Robert Kaussow 013988d5bb
All checks were successful
continuous-integration/drone/push Build is passing
fix: deploy sysconfig file to ensure chrony user is used
2022-09-19 16:53:21 +02:00

29 lines
572 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
{% if chrony_server | default([]) | length == 0 %}
pool {{ chrony_pool }}
{% endif %}
{% for server in chrony_server %}
server {{ item }}
{% endfor %}
port {{ chrony_port }}
sourcedir /run/chrony-dhcp
driftfile /var/lib/chrony/drift
makestep 1.0 3
rtcsync
{% if chrony_allow | length > 0 %}
{% for block in chrony_allow %}
allow {{ block }}
{% endfor %}
{% endif %}
keyfile /etc/chrony.keys
ntsdumpdir {{ chrony_ntsdumpdir }}
leapsectz right/UTC
logdir {{ chrony_logdir }}
log {{ chrony_log | join(" ") }}