]> gitweb.fluxo.info Git - puppet-ntp.git/commitdiff
Redirecting stderr to stdout for ntpdate cronjob
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Jul 2010 01:46:42 +0000 (22:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Jul 2010 01:46:42 +0000 (22:46 -0300)
manifests/init.pp

index 871eaec48fe0adbf432201280a4ff5cfa01e075c..c04e081d85a20852243f818672385779dd03b59c 100644 (file)
@@ -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",