blob: 6704d180cb09722434058dccbcb5570577d4cbe4 [file] [log] [blame]
{%- set ntp = pillar.ntp.client %}
# ntpd will only synchronize your clock.
# For details, see:
# - the ntp.conf man page
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
# Associate to Czech public NTP pool servers
{%- for stratum in ntp.strata %}
server {{ stratum }}{% if loop.first %} iburst{% endif %}
{%- endfor %}
# Provide your current local time as a default should you temporarly lose Internet connectivity
# server 127.127.1.0
# fudge 127.127.1.0 stratum 10
# Only allow read-only access from localhost
restrict default noquery nopeer
# exchange time with everybody, but don't allow configuration.
#restrict -4 default kod notrap nomodify nopeer noquery
#restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
{%- if ntp.mode7 %}
# mode7 is required for collectd monitoring
enable mode7
{%- endif %}
# Location of drift file
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log