summaryrefslogtreecommitdiff
path: root/templates/ntp.conf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/ntp.conf.erb')
-rw-r--r--templates/ntp.conf.erb13
1 files changed, 6 insertions, 7 deletions
diff --git a/templates/ntp.conf.erb b/templates/ntp.conf.erb
index c0a821b..94b3675 100644
--- a/templates/ntp.conf.erb
+++ b/templates/ntp.conf.erb
@@ -6,13 +6,12 @@
tinker panic 0
<% end -%>
-<% if @restrict -%>
-# Permit time synchronization with our time source, but do not
-# permit the source to query or modify the service on this system.
-restrict default kod nomodify notrap nopeer noquery
-restrict -6 default kod nomodify notrap nopeer noquery
-restrict 127.0.0.1
-restrict -6 ::1
+<% if @restrict != [] -%>
+# Permit time synchronization with our time source, but do not'
+# permit the source to query or modify the service on this system.'
+<% @restrict.flatten.each do |restrict| -%>
+<%= restrict %>
+<% end %>
<% end -%>
# Servers