summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBranan Purvine-Riley <branan@puppetlabs.com>2012-10-18 18:52:26 -0700
committerBranan Purvine-Riley <branan@puppetlabs.com>2012-10-18 18:52:26 -0700
commitda121489208453158c9bdcac4596c5d8fed46ed8 (patch)
treed44c635ff5d4c20248d1f05e44f645fddb13f5ae
parente43169495068ceaa17c168d16b3c4e50ae4a615d (diff)
parent1aa00ce8eaabe53e13f72316b722a712841d553c (diff)
Merge pull request #27 from mdsummers/is_virtual_check
Fix is_virtual check in ntp.conf templates
-rw-r--r--templates/ntp.conf.debian.erb2
-rw-r--r--templates/ntp.conf.el.erb2
-rw-r--r--templates/ntp.conf.freebsd.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/ntp.conf.debian.erb b/templates/ntp.conf.debian.erb
index 0525d00..7a3f690 100644
--- a/templates/ntp.conf.debian.erb
+++ b/templates/ntp.conf.debian.erb
@@ -1,6 +1,6 @@
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
-<% if @is_virtual -%>
+<% if @is_virtual == "true" -%>
# Keep ntpd from panicking in the event of a large clock skew
# when a VM guest is suspended and resumed.
tinker panic 0
diff --git a/templates/ntp.conf.el.erb b/templates/ntp.conf.el.erb
index 88d6d72..fe8a9a5 100644
--- a/templates/ntp.conf.el.erb
+++ b/templates/ntp.conf.el.erb
@@ -1,4 +1,4 @@
-<% if @is_virtual -%>
+<% if @is_virtual == "true" -%>
# Keep ntpd from panicking in the event of a large clock skew
# when a VM guest is suspended and resumed.
tinker panic 0
diff --git a/templates/ntp.conf.freebsd.erb b/templates/ntp.conf.freebsd.erb
index 954a2a8..7d08644 100644
--- a/templates/ntp.conf.freebsd.erb
+++ b/templates/ntp.conf.freebsd.erb
@@ -18,7 +18,7 @@
# The option `maxpoll 9' is used to prevent PLL/FLL flipping on FreeBSD.
#
# Managed by puppet class { "ntp": servers => [ ... ] }
-<% if @is_virtual -%>
+<% if @is_virtual == "true" -%>
# Keep ntpd from panicking in the event of a large clock skew
# when a VM guest is suspended and resumed.