]> gitweb.fluxo.info Git - puppet-ntp.git/commitdiff
Ensuring ntpdate cron entry is not present at timezone class but present on ntpdate
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Jan 2010 13:54:16 +0000 (11:54 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 21 Jan 2010 13:54:16 +0000 (11:54 -0200)
manifests/init.pp

index 06de9b2d2a53ff2fd0f161ccb8cf94dce7ad0f4e..871eaec48fe0adbf432201280a4ff5cfa01e075c 100644 (file)
@@ -15,6 +15,10 @@ class timezone {
     require => Package["tzdata"],
   }
 
+  # don't adjust time using ntpdate
+  cron { "ntpdate":
+    ensure => absent,
+  }
 }
 
 class ntp inherits timezone {
@@ -69,7 +73,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",
     user     => root,
     hour     => "*/1",
@@ -80,8 +84,8 @@ class ntpdate inherits timezone {
 
   # ensure ntp service is stopped
   service { "ntp":
-    enable     => false,
-    ensure     => false,
+    enable => false,
+    ensure => false,
   }
 
 }