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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2199 - (hide annotations) (download)
Sun Jan 8 20:24:58 2012 UTC (13 years, 1 month ago) by misc
File size: 922 byte(s)
add defaults values for user created by puppet, to remove duplication
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     }

  ViewVC Help
Powered by ViewVC 1.1.30