From 5fd66d38ed79bb42c64ff68f26a43e71207476ef Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Tue, 9 Jul 2013 16:59:43 -0400 Subject: Add panic as a new parameter in case people want to allow clock skews. --- templates/ntp.conf.suse.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/ntp.conf.suse.erb') diff --git a/templates/ntp.conf.suse.erb b/templates/ntp.conf.suse.erb index e44e068..1cbe6a2 100644 --- a/templates/ntp.conf.suse.erb +++ b/templates/ntp.conf.suse.erb @@ -29,21 +29,21 @@ ## # server 127.127.8.0 mode 5 prefer -<% if @is_virtual == "false" -%> +<% if @panic == true -%> ## ## Undisciplined Local Clock. This is a fake driver intended for backup ## and when no outside source of synchronized time is available. ## server 127.127.1.0 # local clock (LCL) fudge 127.127.1.0 stratum 10 # LCL is unsynchronized - <% end -%> + # Managed by puppet class { "ntp": servers => [ ... ] } <% [@servers].flatten.each do |server| -%> server <%= server %> <% end -%> -<% 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 -- cgit v1.2.3