From 1bfd8e314c03c89ec87cebf70339bbda16ad3afb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 14 Jul 2010 22:46:42 -0300 Subject: Redirecting stderr to stdout for ntpdate cronjob --- manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'manifests') 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", -- cgit v1.2.3