summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
}
}