/[adm]/puppet/deployment/releasekey/manifests/init.pp
ViewVC logotype

Contents of /puppet/deployment/releasekey/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1686 - (show annotations) (download)
Mon May 30 18:39:30 2011 UTC (11 years ago) by pterjan
File size: 1023 byte(s)
Add a script to sign isos
1 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 group {"$sign_login":
10 ensure => present,
11 }
12
13 user {"$sign_login":
14 ensure => present,
15 comment => "System user to sign Mageia Releases",
16 managehome => true,
17 home => $sign_home_dir,
18 gid => $sign_login,
19 shell => "/bin/bash",
20 require => Group[$sign_login],
21 }
22
23 gnupg::keys{"release":
24 email => "release@$domain",
25 #FIXME there should be a variable somewhere to change the name of the distribution
26 key_name => 'Mageia Release',
27 login => $sign_login,
28 batchdir => "$sign_home_dir/batches",
29 keydir => $sign_keydir,
30 require => User[$sign_login],
31 }
32
33 file { "/usr/local/bin/sign_checksums":
34 ensure => present,
35 owner => $sign_login,
36 mode => 700,
37 content => template("releasekey/sign_checksums"),
38 }
39 }
40 }

  ViewVC Help
Powered by ViewVC 1.1.28