summaryrefslogtreecommitdiff
path: root/templates/ntp.conf.freebsd.erb
diff options
context:
space:
mode:
authorMatt Summers <devopsmatt@gmail.com>2012-10-11 14:28:43 +0100
committerMatt Summers <devopsmatt@gmail.com>2012-10-11 14:28:43 +0100
commit1aa00ce8eaabe53e13f72316b722a712841d553c (patch)
treed44c635ff5d4c20248d1f05e44f645fddb13f5ae /templates/ntp.conf.freebsd.erb
parente43169495068ceaa17c168d16b3c4e50ae4a615d (diff)
Fix is_virtual check in ntp.conf templates
is_virtual fact must be checked using a string comparison. The previous logic would resolve true if the is_virtual fact was defined. This meant that on servers where is_virtual was defined as "false", the vm-only snippet was still inserted into the template.
Diffstat (limited to 'templates/ntp.conf.freebsd.erb')
-rw-r--r--templates/ntp.conf.freebsd.erb2
1 files changed, 1 insertions, 1 deletions
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.