From 422af867a515e71de52135c3528eaaa156f2ed4a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 21 Jan 2010 11:54:16 -0200 Subject: Ensuring ntpdate cron entry is not present at timezone class but present on ntpdate --- manifests/init.pp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 06de9b2..871eaec 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -15,6 +15,10 @@ class timezone { require => Package["tzdata"], } + # don't adjust time using ntpdate + cron { "ntpdate": + ensure => absent, + } } class ntp inherits timezone { @@ -69,7 +73,7 @@ class ntpdate inherits timezone { } # adjust time using ntpdate - cron { "ntpdate": + Cron["ntpdate"] { command => "/usr/sbin/ntpdate -t 5 ${ntp_pool} >> /var/log/ntpdate.log", user => root, hour => "*/1", @@ -80,8 +84,8 @@ class ntpdate inherits timezone { # ensure ntp service is stopped service { "ntp": - enable => false, - ensure => false, + enable => false, + ensure => false, } } -- cgit v1.2.3