Parent Directory | Revision Log
split and clean mirrir_cleaner module
1 | define mirror_cleaner::orphans($base) { |
2 | include mirror_cleaner::base |
3 | |
4 | $orphan_dir = '/distrib/archive/orphans' |
5 | |
6 | file { $orphan_dir: |
7 | ensure => directory |
8 | } |
9 | |
10 | cron { "clean orphans $name": |
11 | command => "/usr/local/bin/orphans_cleaner.pl $base/$name $orphan_dir", |
12 | hour => 5, |
13 | minute => 30, |
14 | user => root, |
15 | } |
16 | |
17 | tidy { $orphan_dir: |
18 | age => '4w', |
19 | recurse => true, |
20 | matches => ['*.rpm'], |
21 | } |
22 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |