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 |
|
|
sshuser { $sign_login: |
10 |
|
|
homedir => $sign_home_dir, |
11 |
|
|
comment => "System user to sign Mageia Releases", |
12 |
|
|
groups => [$sched_login], |
13 |
|
|
} |
14 |
|
|
|
15 |
|
|
gnupg::keys{"release": |
16 |
|
|
email => "release@$domain", |
17 |
|
|
#FIXME there should be a variable somewhere to change the name of the distribution |
18 |
|
|
key_name => 'Mageia Release', |
19 |
|
|
login => $sign_login, |
20 |
|
|
batchdir => "$sign_home_dir/batches", |
21 |
|
|
keydir => $sign_keydir, |
22 |
|
|
require => Sshuser[$sign_login], |
23 |
|
|
} |
24 |
|
|
} |
25 |
|
|
} |