From 75efd2a9e423d421a970eafe4e10071676c81561 Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Fri, 5 Jul 2013 18:52:04 -0400 Subject: Some syntax fixes as well as deprecate autoupdate. --- manifests/params.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'manifests/params.pp') diff --git a/manifests/params.pp b/manifests/params.pp index 9d20a13..91186da 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -3,8 +3,13 @@ class ntp::params() { $autoupdate = false $enable_service = true $ensure_service = 'running' + $package_ensure = 'present' $restrict = true + if $autoupdate { + notice('autoupdate parameter has been deprecated and replaced with package_ensure. Set this to latest for the same behavior as autoupdate => true.') + } + case $::osfamily { 'Debian': { $config = '/etc/ntp.conf' @@ -61,7 +66,7 @@ class ntp::params() { $config_template = 'ntp/ntp.conf.archlinux.erb' $package_name = ['ntp'] $service_name = 'ntpd' - $servers = [ + $servers = [ '0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', -- cgit v1.2.3