summaryrefslogtreecommitdiff
path: root/templates/ntp.conf.freebsd.erb
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2013-07-09 16:59:43 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2013-07-09 17:01:04 -0400
commit5fd66d38ed79bb42c64ff68f26a43e71207476ef (patch)
treed313c8dba66ca14de0928340b8ab652e42f39b7a /templates/ntp.conf.freebsd.erb
parent43b484c7ab6f92c9eae165982ba127e3d3a87a2e (diff)
Add panic as a new parameter in case people want to allow clock skews.
Diffstat (limited to 'templates/ntp.conf.freebsd.erb')
-rw-r--r--templates/ntp.conf.freebsd.erb5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/ntp.conf.freebsd.erb b/templates/ntp.conf.freebsd.erb
index a55ba3d..7fcffb8 100644
--- a/templates/ntp.conf.freebsd.erb
+++ b/templates/ntp.conf.freebsd.erb
@@ -18,13 +18,12 @@
# The option `maxpoll 9' is used to prevent PLL/FLL flipping on FreeBSD.
#
# Managed by puppet class { "ntp": servers => [ ... ] }
-<% if @is_virtual == "true" -%>
-
+<% if @panic == false -%>
# Keep ntpd from panicking in the event of a large clock skew
# when a VM guest is suspended and resumed.
tinker panic 0
-
<% end -%>
+
<% [@servers].flatten.each do |server| -%>
server <%= server %>
<% end -%>