summaryrefslogtreecommitdiff
path: root/templates/ntp.conf.suse.erb
diff options
context:
space:
mode:
authorAlexander Fisher <alex@alexfisher.me.uk>2013-02-27 18:35:53 +0000
committerAlexander Fisher <alex@alexfisher.me.uk>2013-02-27 18:35:53 +0000
commit01273c53f1cf2015c3ff5a9f704828225d900e03 (patch)
treedf850fafc60bbd40c9da5b8c2fadbac9ba08112c /templates/ntp.conf.suse.erb
parentfd064cbdf39bf12794e4c6733b188a077a47a214 (diff)
Omit configuration for a local clock as time source if running on a VM.
Quoting http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006427 'It is also important not to use the local clock as a time source, often referred to as the Undisciplined Local Clock.'
Diffstat (limited to 'templates/ntp.conf.suse.erb')
-rw-r--r--templates/ntp.conf.suse.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/ntp.conf.suse.erb b/templates/ntp.conf.suse.erb
index b25aac2..e24ec83 100644
--- a/templates/ntp.conf.suse.erb
+++ b/templates/ntp.conf.suse.erb
@@ -29,6 +29,7 @@
##
# server 127.127.8.0 mode 5 prefer
+<% if @is_virtual == "false" -%>
##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
@@ -36,6 +37,7 @@
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| -%>
server <%= server %>