1 |
class releasekey { |
2 |
$sign_login = 'releasekey' |
3 |
$sign_home_dir = "/var/lib/$sign_login" |
4 |
$sign_keydir = "$sign_home_dir/keys" |
5 |
group { $sign_login: } |
6 |
|
7 |
user { $sign_login: |
8 |
comment => 'System user to sign Mageia Releases', |
9 |
home => $sign_home_dir, |
10 |
gid => $sign_login, |
11 |
require => Group[$sign_login], |
12 |
} |
13 |
|
14 |
gnupg::keys{ 'release': |
15 |
email => "release@$::domain", |
16 |
#FIXME there should be a variable somewhere to change the name of the distribution |
17 |
key_name => 'Mageia Release', |
18 |
login => $sign_login, |
19 |
batchdir => "$sign_home_dir/batches", |
20 |
keydir => $sign_keydir, |
21 |
require => User[$sign_login], |
22 |
} |
23 |
|
24 |
mga_common::local_script { 'sign_checksums': |
25 |
content => template('releasekey/sign_checksums'), |
26 |
} |
27 |
} |