ntp.conf.j2 772 B

1234567891011121314151617181920212223242526
  1. ### {{ ansible_managed }}
  2. # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
  3. driftfile /var/lib/ntp/ntp.drift
  4. # Enable statistics
  5. statsdir /var/log/ntpstats/
  6. statistics loopstats peerstats clockstats
  7. filegen loopstats file loopstats type day enable
  8. filegen peerstats file peerstats type day enable
  9. filegen clockstats file clockstats type day enable
  10. # NTP server pool
  11. {% for server in timesync_servers %}server {{ server }} iburst
  12. {% endfor %}
  13. # Access control configuration
  14. # By default, exchange time with everybody, but don't allow configuration.
  15. restrict -4 default kod notrap nomodify nopeer noquery
  16. restrict -6 default kod notrap nomodify nopeer noquery
  17. # Local users may interrogate the ntp server more closely.
  18. restrict 127.0.0.1
  19. restrict ::1