summaryrefslogtreecommitdiff
path: root/manifests/params.pp
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2013-07-09 16:59:43 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2013-07-09 17:01:04 -0400
commit5fd66d38ed79bb42c64ff68f26a43e71207476ef (patch)
treed313c8dba66ca14de0928340b8ab652e42f39b7a /manifests/params.pp
parent43b484c7ab6f92c9eae165982ba127e3d3a87a2e (diff)
Add panic as a new parameter in case people want to allow clock skews.
Diffstat (limited to 'manifests/params.pp')
-rw-r--r--manifests/params.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 7903176..3486f6f 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -7,6 +7,12 @@ class ntp::params() {
$service_ensure = 'running'
$service_manage = true
+ # On virtual machines allow large clock skews.
+ $panic = $::is_virtual ? {
+ true => false,
+ default => true,
+ }
+
case $::osfamily {
'Debian': {
$config = '/etc/ntp.conf'