X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/805ab61e66fe3adb45e57f50e49b168d84a6a8b1..7b9ec4b60ee39614d1d083d7220e76b07d2b275f:/cookbooks/ntp/templates/default/ntp.conf.erb diff --git a/cookbooks/ntp/templates/default/ntp.conf.erb b/cookbooks/ntp/templates/default/ntp.conf.erb new file mode 100644 index 000000000..ffb263ce4 --- /dev/null +++ b/cookbooks/ntp/templates/default/ntp.conf.erb @@ -0,0 +1,16 @@ +# DO NOT EDIT - This file is being maintained by Chef + +# Exchange time with everybody, but don't allow configuration +restrict default kod notrap nomodify nopeer noquery + +# Local users may interrogate the ntp server more closely +restrict 127.0.0.1 +restrict ::1 + +# Servers +<% node[:ntp][:servers].each do |server| -%> +server <%= server %> iburst +<% end -%> + +# Drift file +driftfile /var/lib/ntp/ntp.drift