diff options
-rw-r--r-- | modules/mga-mirrors/manifests/init.pp | 8 | ||||
-rw-r--r-- | modules/mga-mirrors/templates/cron-mga_mirrors | 2 |
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 |