chrony.conf.j2 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 server in chrony_ntp_servers %}
  4. server {{ server }} iburst
  5. {% endfor %}
  6. # Ignore stratum in source selection.
  7. stratumweight 0
  8. # Record the rate at which the system clock gains/losses time.
  9. driftfile /var/lib/chrony/drift
  10. # Enable kernel RTC synchronization.
  11. rtcsync
  12. # In first three updates step the system clock instead of slew
  13. # if the adjustment is larger than 10 seconds.
  14. makestep 10 3
  15. # Allow NTP client access from local network.
  16. #allow 192.168/16
  17. # Listen for commands only on localhost.
  18. bindcmdaddress 127.0.0.1
  19. bindcmdaddress ::1
  20. # Serve time even if not synchronized to any NTP server.
  21. #local stratum 10
  22. keyfile /etc/chrony.keys
  23. # Specify the key used as password for chronyc.
  24. commandkey 1
  25. # Generate command key if missing.
  26. generatecommandkey
  27. # Disable logging of client accesses.
  28. noclientlog
  29. # Send a message to syslog if a clock adjustment is larger than 0.5 seconds.
  30. logchange 0.5
  31. logdir /var/log/chrony
  32. #log measurements statistics tracking