/[adm]/puppet/modules/mirror_cleaner/manifests/orphans.pp
ViewVC logotype

Contents of /puppet/modules/mirror_cleaner/manifests/orphans.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2474 - (show annotations) (download)
Wed Mar 7 21:10:15 2012 UTC (12 years, 1 month ago) by misc
File size: 482 byte(s)
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