summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-21 11:54:16 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-21 11:54:16 -0200
commit422af867a515e71de52135c3528eaaa156f2ed4a (patch)
treec321e11c5ab173cc824f82b75fddb9cd1146a849
parent1d8abffd9b8a2422959230824e0055be5ccdb706 (diff)
downloadpuppet-ntp-422af867a515e71de52135c3528eaaa156f2ed4a.tar.gz
puppet-ntp-422af867a515e71de52135c3528eaaa156f2ed4a.tar.bz2
Ensuring ntpdate cron entry is not present at timezone class but present on ntpdate
-rw-r--r--manifests/init.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 06de9b2..871eaec 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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,
}
}