1 # DO NOT EDIT - This file is being maintained by Chef
4 <% node[:ntp][:servers].each do |server| -%>
5 pool <%= server %> iburst
7 # Add additional non-pool NTP servers
8 # pool.ntp.org can sometimes be aggressive with KoD
9 pool time.cloudflare.com iburst maxsources 2
10 pool time.google.com iburst maxsources 2
12 # Run an initial NTP sync on daemon startup
13 initstepslew 30 time.cloudflare.com time.google.com <%= node[:ntp][:servers].join(" ") %>
15 # This directive specify the location of the file containing ID/key pairs for
17 keyfile /etc/chrony/chrony.keys
19 # This directive specify the file into which chronyd will store the rate
21 driftfile /var/lib/chrony/chrony.drift
23 # Uncomment the following line to turn logging on.
24 #log tracking measurements statistics
27 logdir /var/log/chrony
29 # Stop bad estimates upsetting machine clock.
32 # This directive enables kernel synchronisation (every 11 minutes) of the
33 # real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
36 <% if node[:virtualization][:role] == "guest" -%>
37 # Allow anytime step on VM guests
40 # Step the system clock instead of slewing it if the adjustment is larger than
41 # one second, but only in the first three clock updates.
45 # Enable leap second slew
49 # Enable hardware timestamps if available