]> gitweb.fluxo.info Git - puppet-ntp.git/commitdiff
Avoiding puppet issue #775
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 15 Feb 2011 01:19:10 +0000 (23:19 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 15 Feb 2011 01:19:10 +0000 (23:19 -0200)
manifests/init.pp

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