From 5fd66d38ed79bb42c64ff68f26a43e71207476ef Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Tue, 9 Jul 2013 16:59:43 -0400 Subject: Add panic as a new parameter in case people want to allow clock skews. --- manifests/config.pp | 1 + manifests/init.pp | 1 + manifests/params.pp | 6 ++++++ 3 files changed, 8 insertions(+) (limited to 'manifests') diff --git a/manifests/config.pp b/manifests/config.pp index 80368f0..b34ef4f 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,6 +1,7 @@ class ntp::config( $config = $ntp::config, $config_template = $ntp::config_template, + $panic = $ntp::panic, $restrict = $ntp::restrict, $servers = $ntp::servers, ) inherits ntp { diff --git a/manifests/init.pp b/manifests/init.pp index 2dd9184..6d594c3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,6 +4,7 @@ class ntp( $config_template = $ntp::params::config_template, $package_ensure = $ntp::params::package_ensure, $package_name = $ntp::params::package_name, + $panic = $ntp::params::panic, $restrict = $ntp::params::restrict, $servers = $ntp::params::servers, $service_enable = $ntp::params::service_enable, 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' -- cgit v1.2.3