1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
class reprepro::purged(
$origin = $::domain,
$uploaders = '',
$basedir = '/srv/reprepro'
) {
$reprepro_origin = $origin
$reprepro_uploaders = $uploaders
user { "reprepro":
ensure => absent,
}
group { "reprepro":
ensure => absent,
}
file {
"$basedir":
force => true,
ensure => absent;
"$basedir/conf":
force => true,
ensure => absent;
"$basedir/db":
force => true,
ensure => absent;
"$basedir/dists":
force => true,
ensure => absent;
"$basedir/pool":
force => true,
ensure => absent;
"$basedir/incoming":
force => true,
ensure => absent;
"$basedir/logs":
force => true,
ensure => absent;
"$basedir/tmp":
force => true,
ensure => absent;
"$basedir/conf/distributions":
force => true,
ensure => absent;
"$basedir/conf/uploaders":
force => true,
ensure => absent;
"$basedir/conf/incoming":
force => true,
ensure => absent;
"$basedir/index.html":
force => true,
ensure => absent;
"$basedir/.gnupg":
force => true,
ensure => absent;
"$basedir/.gnupg/secring.gpg":
force => true,
ensure => absent;
"/usr/local/bin/reprepro-export-key":
ensure => absent,
content => template('reprepro/reprepro-export-key.sh.erb'),
owner => root,
group => root,
mode => 755,
}
cron { reprepro:
command => "/usr/bin/reprepro --silent -b ${reprepro::basedir} processincoming incoming",
user => reprepro,
ensure => absent,
}
}
|