]> git.openstreetmap.org Git - chef.git/commitdiff
ntp: allow large steps on VMs
authorGrant Slater <git@firefishy.com>
Mon, 2 Dec 2019 20:00:23 +0000 (20:00 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 2 Dec 2019 20:00:23 +0000 (20:00 +0000)
cookbooks/ntp/templates/default/chrony.conf.erb

index aa6992d776e1bca1a9b1a4908898f7e79474dce5..9f7b30d491f583d31f75b5ec29bbe405ba66b340 100644 (file)
@@ -29,6 +29,8 @@ rtcsync
 <% if node[:virtualization][:role] == "guest" -%>
 # Allow anytime step on VM guests
 makestep 1 -1
+# Allow 1h changes and do not exit
+maxchange 3600 1 -1
 <% else -%>
 # Step the system clock instead of slewing it if the adjustment is larger than
 # one second, but only in the first three clock updates.