aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mga-mirrors
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-08-01 14:14:19 +0000
committerNicolas Vigier <boklm@mageia.org>2011-08-01 14:14:19 +0000
commit5b6e880db7185e2ba29bd5c599bf1d6e8405a95a (patch)
tree56c9f64127a9e273204c7ce3ac2408ab3a8c983a /modules/mga-mirrors
parentc489b229c287b46655752ad9e699c3c7ff28ad6b (diff)
downloadpuppet-5b6e880db7185e2ba29bd5c599bf1d6e8405a95a.tar
puppet-5b6e880db7185e2ba29bd5c599bf1d6e8405a95a.tar.gz
puppet-5b6e880db7185e2ba29bd5c599bf1d6e8405a95a.tar.bz2
puppet-5b6e880db7185e2ba29bd5c599bf1d6e8405a95a.tar.xz
puppet-5b6e880db7185e2ba29bd5c599bf1d6e8405a95a.zip
update mga_mirrors cron to send emails to root instead of apache user
Diffstat (limited to 'modules/mga-mirrors')
-rw-r--r--modules/mga-mirrors/manifests/init.pp8
-rw-r--r--modules/mga-mirrors/templates/cron-mga_mirrors2
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp
index 2b6a9f1d..33da9a9b 100644
--- a/modules/mga-mirrors/manifests/init.pp
+++ b/modules/mga-mirrors/manifests/init.pp
@@ -27,4 +27,12 @@ class mga-mirrors {
content => template("mga-mirrors/mga-mirrors.ini"),
require => Package['mga-mirrors']
}
+
+ file { "/etc/cron.d/mga_mirrors":
+ ensure => "present",
+ owner => root,
+ group => root,
+ content => template("mga-mirrors/cron-mga_mirrors"),
+ require => Package['mga-mirrors']
+ }
}
diff --git a/modules/mga-mirrors/templates/cron-mga_mirrors b/modules/mga-mirrors/templates/cron-mga_mirrors
new file mode 100644
index 00000000..624de798
--- /dev/null
+++ b/modules/mga-mirrors/templates/cron-mga_mirrors
@@ -0,0 +1,2 @@
+MAILTO=root
+0 * * * * apache /usr/bin/check_mirror