1 |
boklm |
1295 |
class releasekey { |
2 |
|
|
class variable { |
3 |
|
|
$sign_login = "releasekey" |
4 |
|
|
$sign_home_dir = "/var/lib/$sign_login" |
5 |
|
|
$sign_keydir = "$sign_home_dir/keys" |
6 |
|
|
} |
7 |
|
|
|
8 |
|
|
class base inherits variable { |
9 |
misc |
2199 |
group {"$sign_login": } |
10 |
boklm |
1298 |
|
11 |
|
|
user {"$sign_login": |
12 |
boklm |
1295 |
comment => "System user to sign Mageia Releases", |
13 |
boklm |
1298 |
home => $sign_home_dir, |
14 |
|
|
gid => $sign_login, |
15 |
|
|
require => Group[$sign_login], |
16 |
boklm |
1295 |
} |
17 |
|
|
|
18 |
|
|
gnupg::keys{"release": |
19 |
|
|
email => "release@$domain", |
20 |
|
|
#FIXME there should be a variable somewhere to change the name of the distribution |
21 |
|
|
key_name => 'Mageia Release', |
22 |
|
|
login => $sign_login, |
23 |
|
|
batchdir => "$sign_home_dir/batches", |
24 |
|
|
keydir => $sign_keydir, |
25 |
boklm |
1299 |
require => User[$sign_login], |
26 |
boklm |
1295 |
} |
27 |
pterjan |
1686 |
|
28 |
|
|
file { "/usr/local/bin/sign_checksums": |
29 |
|
|
ensure => present, |
30 |
|
|
owner => $sign_login, |
31 |
|
|
mode => 700, |
32 |
|
|
content => template("releasekey/sign_checksums"), |
33 |
|
|
} |
34 |
boklm |
1295 |
} |
35 |
|
|
} |