blob: ccf6cb390e79462c8ed9ef900f661e66e767f30e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
define mirror_cleaner::orphans($base) {
include mirror_cleaner::base
$orphan_dir = '/distrib/archive/orphans'
file { $orphan_dir:
ensure => directory
}
cron { "clean orphans ${name}":
command => "/usr/local/bin/orphans_cleaner.pl ${base}/${name} ${orphan_dir}",
hour => 5,
minute => 30,
weekday => 1,
user => root,
}
tidy { $orphan_dir:
type => 'ctime',
age => '4w',
recurse => true,
matches => ['*.rpm'],
}
}
|