From c2bbb117c5b5ca546cf4936d6fae5629f6e08c0d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 27 Oct 2010 16:01:48 +0000 Subject: - convert the cronjob to the native cron type --- modules/mirror/manifests/init.pp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/mirror/manifests/init.pp b/modules/mirror/manifests/init.pp index 6adce9e1..5d6bca4b 100644 --- a/modules/mirror/manifests/init.pp +++ b/modules/mirror/manifests/init.pp @@ -9,14 +9,12 @@ class mirror { content => template("mirror/update_timestamp") } - file { "mirror.cron": - path => "/etc/cron.d/mirror", - ensure => present, - owner => root, - group => root, - mode => 644, + cron { mirror: + user => mirror, + hour => 10, + minute => 14, + command => "~mirror/bin/update_timestamp", require => File["update_timestamp"], - content => template("mirror/cron") } } -- cgit v1.2.1