summaryrefslogtreecommitdiff
path: root/manifests/params.pp
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2013-07-05 18:52:04 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2013-07-05 18:53:55 -0400
commit75efd2a9e423d421a970eafe4e10071676c81561 (patch)
treebfc80dc9f920a278e9c4c99b3e9b7246f1740ade /manifests/params.pp
parentdc0efbfacf6f7135e0437495e6f69f971da6285d (diff)
Some syntax fixes as well as deprecate autoupdate.
Diffstat (limited to 'manifests/params.pp')
-rw-r--r--manifests/params.pp7
1 files changed, 6 insertions, 1 deletions
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',