aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mirror
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-10-27 16:01:48 +0000
committerMichael Scherer <misc@mageia.org>2010-10-27 16:01:48 +0000
commitc2bbb117c5b5ca546cf4936d6fae5629f6e08c0d (patch)
tree7335f05e076b50adc3518892020eb03b74b00fb0 /modules/mirror
parent18f0f9231535d8d8d164432bdc3b6f7902d69303 (diff)
downloadpuppet-c2bbb117c5b5ca546cf4936d6fae5629f6e08c0d.tar
puppet-c2bbb117c5b5ca546cf4936d6fae5629f6e08c0d.tar.gz
puppet-c2bbb117c5b5ca546cf4936d6fae5629f6e08c0d.tar.bz2
puppet-c2bbb117c5b5ca546cf4936d6fae5629f6e08c0d.tar.xz
puppet-c2bbb117c5b5ca546cf4936d6fae5629f6e08c0d.zip
- convert the cronjob to the native cron type
Diffstat (limited to 'modules/mirror')
-rw-r--r--modules/mirror/manifests/init.pp12
1 files 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")
}
}