summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-07-14 22:46:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-07-14 22:46:42 -0300
commit1bfd8e314c03c89ec87cebf70339bbda16ad3afb (patch)
tree8b08cb05a0fac83b100763adef10ccaced31c926 /manifests
parent422af867a515e71de52135c3528eaaa156f2ed4a (diff)
downloadpuppet-ntp-1bfd8e314c03c89ec87cebf70339bbda16ad3afb.tar.gz
puppet-ntp-1bfd8e314c03c89ec87cebf70339bbda16ad3afb.tar.bz2
Redirecting stderr to stdout for ntpdate cronjob
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp4
1 files changed, 2 insertions, 2 deletions
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",