summaryrefslogtreecommitdiff
path: root/templates/ntp.conf.suse.erb
diff options
context:
space:
mode:
authorAshley Penney <apenney@gmail.com>2013-07-09 14:10:19 -0700
committerAshley Penney <apenney@gmail.com>2013-07-09 14:10:19 -0700
commit75776217283ba2531d9025b34db567dc06f2ff65 (patch)
treed1e45b40789bb77cf88ca38c03ba1a3841d20229 /templates/ntp.conf.suse.erb
parent451c93a46c42c9659cc0930a301746cf103dbeb2 (diff)
parentb9ab67401404d13e535d815c8a3eafb78cf143fd (diff)
Merge pull request #66 from apenney/refactor-round-1
WIP: Refactoring of NTP module
Diffstat (limited to 'templates/ntp.conf.suse.erb')
-rw-r--r--templates/ntp.conf.suse.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/ntp.conf.suse.erb b/templates/ntp.conf.suse.erb
index 4ce6205..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_real].flatten.each do |server| -%>
+<% [@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