chrony.conf.j2 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Use public servers from the pool.ntp.org project.
  2. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
  3. {% for item in chrony_servers %}
  4. pool {{ item }} iburst
  5. {% endfor %}
  6. # Record the rate at which the system clock gains/losses time.
  7. driftfile /var/lib/chrony/drift
  8. # Allow the system clock to be stepped in the first three updates
  9. # if its offset is larger than 1 second.
  10. makestep 1.0 3
  11. # Enable kernel synchronization of the real-time clock (RTC).
  12. rtcsync
  13. # Enable hardware timestamping on all interfaces that support it.
  14. #hwtimestamp *
  15. # Increase the minimum number of selectable sources required to adjust
  16. # the system clock.
  17. #minsources 2
  18. # Allow NTP client access from local network.
  19. #allow 192.168.0.0/16
  20. # Serve time even if not synchronized to a time source.
  21. #local stratum 10
  22. # Specify file containing keys for NTP authentication.
  23. keyfile /etc/chrony.keys
  24. # Get TAI-UTC offset and leap seconds from the system tz database.
  25. leapsectz right/UTC
  26. # Specify directory for log files.
  27. logdir /var/log/chrony
  28. # Select which information is logged.
  29. #log measurements statistics tracking