summaryrefslogtreecommitdiff
path: root/templates/ntp.conf.el.erb
diff options
context:
space:
mode:
authorRyan Coleman <ryan@puppetlabs.com>2012-12-10 11:16:08 -0800
committerRyan Coleman <ryan@puppetlabs.com>2012-12-10 11:16:08 -0800
commitef34330e6fdd3dd430b809089b552fb4e12486ea (patch)
tree9a808b7820388cfa014958c287fdb4721f346336 /templates/ntp.conf.el.erb
parent621ed4d3d3cd1896dc649ede9324799bbba07e7f (diff)
parent13835e152e9bc93d2d48a4809aa39dbf8f492946 (diff)
Merge pull request #34 from hunner/add_restrict
Add restrict parameter
Diffstat (limited to 'templates/ntp.conf.el.erb')
-rw-r--r--templates/ntp.conf.el.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/ntp.conf.el.erb b/templates/ntp.conf.el.erb
index fe8a9a5..80b358b 100644
--- a/templates/ntp.conf.el.erb
+++ b/templates/ntp.conf.el.erb
@@ -4,6 +4,7 @@
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
@@ -18,6 +19,7 @@ restrict -6 ::1
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
+<% end -%>
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).