summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-14 23:19:10 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-14 23:19:10 -0200
commitecc52a1acd916d3d3eb1b9297bfadef7f1110b9b (patch)
treeb9d4e63df56823c98b2c57d613c48c7baae1c9c3
parent1bfd8e314c03c89ec87cebf70339bbda16ad3afb (diff)
downloadpuppet-ntp-ecc52a1acd916d3d3eb1b9297bfadef7f1110b9b.tar.gz
puppet-ntp-ecc52a1acd916d3d3eb1b9297bfadef7f1110b9b.tar.bz2
Avoiding puppet issue #775
-rw-r--r--manifests/init.pp7
1 files changed, 1 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c04e081..09afea9 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -14,11 +14,6 @@ class timezone {
ensure => "/usr/share/zoneinfo/${ntp_timezone}",
require => Package["tzdata"],
}
-
- # don't adjust time using ntpdate
- cron { "ntpdate":
- ensure => absent,
- }
}
class ntp inherits timezone {
@@ -73,7 +68,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 2>&1",
user => root,
hour => "*/1",