blob: c401918d1271fa6ee8549b27e8fe47945e72d749 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class reprepro::cron inherits reprepro {
cron { reprepro:
command => "/usr/bin/reprepro --silent -b $basedir processincoming incoming",
user => reprepro,
minute => '*/5',
require => [ Package['reprepro'], File["$basedir/conf/distributions"] ]
}
}
class reprepro::cron::disabled inherits reprepro::cron {
Cron['reprepro'] {
ensure => absent,
}
Exec["reprepro -b $basedir createsymlinks", "reprepro -b $basedir export",
"/usr/local/bin/reprepro-export-key", "/usr/local/bin/reprepro-export-key-update"] {
ensure => absent,
}
}
|