Fixes: https://github.com/openstreetmap/operations/issues/654
Signed-off-by: Grant Slater <github@firefishy.com>
option routers <%= interface[:gateway] %>;
option domain-name "<%= @domain %>";
option domain-name-servers <%= interface[:gateway] %>;
- option ntp-servers <%= node[:ntp][:servers].first %>;
+ option ntp-servers <%= node[:ntp][:servers].join(", ") %>;
option time-offset 0;
option PCode "UTC0";
allow ::1/128
# Run an initial NTP sync on daemon startup
-initstepslew 30 time.cloudflare.com time.google.com <%= node[:ntp][:servers].join(" ") %>
+# Use a few IPs here to workaround DNSSEC failure if time is wrong: https://github.com/openstreetmap/operations/issues/654
+initstepslew 30 216.239.35.0 216.239.35.4 216.239.35.8 216.239.35.12 time.google.com time.cloudflare.com <%= node[:ntp][:servers].join(" ") %>
<% if node[:lsb][:release].to_f >= 22.04 -%>
# Use NTP sources found in /etc/chrony/sources.d.