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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1525 - (show annotations) (download)
Mon Apr 18 10:00:07 2011 UTC (10 years, 3 months ago) by boklm
File size: 817 byte(s)
add software key in its own module
1 class softwarekey {
2 class variable {
3 $sign_login = "softwarekey"
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 Software",
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{"software":
24 email => "software@$domain",
25 #FIXME there should be a variable somewhere to change the name of the distribution
26 key_name => 'Mageia Software',
27 login => $sign_login,
28 batchdir => "$sign_home_dir/batches",
29 keydir => $sign_keydir,
30 require => User[$sign_login],
31 }
32 }
33 }

  ViewVC Help
Powered by ViewVC 1.1.28