From: Silvio Rhatto Date: Thu, 15 Jul 2010 01:46:42 +0000 (-0300) Subject: Redirecting stderr to stdout for ntpdate cronjob X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1bfd8e314c03c89ec87cebf70339bbda16ad3afb;p=puppet-ntp.git Redirecting stderr to stdout for ntpdate cronjob --- diff --git a/manifests/init.pp b/manifests/init.pp index 871eaec..c04e081 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -9,7 +9,7 @@ class timezone { # the needed packages package { "tzdata": ensure => installed, } - # adjusts timezone to brasilian time! + # adjust localtime file { "/etc/localtime": ensure => "/usr/share/zoneinfo/${ntp_timezone}", require => Package["tzdata"], @@ -74,7 +74,7 @@ class ntpdate inherits timezone { # adjust time using ntpdate Cron["ntpdate"] { - command => "/usr/sbin/ntpdate -t 5 ${ntp_pool} >> /var/log/ntpdate.log", + command => "/usr/sbin/ntpdate -t 5 ${ntp_pool} >> /var/log/ntpdate.log 2>&1", user => root, hour => "*/1", minute => "10",