/[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 2199 - (show annotations) (download)
Sun Jan 8 20:24:58 2012 UTC (9 years, 6 months ago) by misc
File size: 922 byte(s)
add defaults values for user created by puppet, to remove duplication
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
11 user {"$sign_login":
12 comment => "System user to sign Mageia Releases",
13 home => $sign_home_dir,
14 gid => $sign_login,
15 require => Group[$sign_login],
16 }
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 require => User[$sign_login],
26 }
27
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 }
35 }

  ViewVC Help
Powered by ViewVC 1.1.28