diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-19 21:13:12 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-19 21:13:12 +0000 |
commit | 00b8c39dd62e68ca4da09e9812eb6bb8f1b7ebd1 (patch) | |
tree | 79039ce702c31d23d461496ee0abf87b31c5a66f /deployment | |
parent | 90ef87780b14fa59d94002869b8eb07ab5cabff3 (diff) | |
download | puppet-00b8c39dd62e68ca4da09e9812eb6bb8f1b7ebd1.tar puppet-00b8c39dd62e68ca4da09e9812eb6bb8f1b7ebd1.tar.gz puppet-00b8c39dd62e68ca4da09e9812eb6bb8f1b7ebd1.tar.bz2 puppet-00b8c39dd62e68ca4da09e9812eb6bb8f1b7ebd1.tar.xz puppet-00b8c39dd62e68ca4da09e9812eb6bb8f1b7ebd1.zip |
simplify and clean releasekey module
Diffstat (limited to 'deployment')
-rw-r--r-- | deployment/releasekey/manifests/init.pp | 47 |
1 files changed, 21 insertions, 26 deletions
diff --git a/deployment/releasekey/manifests/init.pp b/deployment/releasekey/manifests/init.pp index 2bf528a3..1dc38025 100644 --- a/deployment/releasekey/manifests/init.pp +++ b/deployment/releasekey/manifests/init.pp @@ -1,32 +1,27 @@ class releasekey { - class variable { - $sign_login = "releasekey" - $sign_home_dir = "/var/lib/$sign_login" - $sign_keydir = "$sign_home_dir/keys" - } - - class base inherits variable { - group {"$sign_login": } + $sign_login = 'releasekey' + $sign_home_dir = "/var/lib/$sign_login" + $sign_keydir = "$sign_home_dir/keys" + group { $sign_login: } - user {"$sign_login": - comment => "System user to sign Mageia Releases", - home => $sign_home_dir, - gid => $sign_login, - require => Group[$sign_login], - } + user { $sign_login: + comment => 'System user to sign Mageia Releases', + home => $sign_home_dir, + gid => $sign_login, + require => Group[$sign_login], + } - gnupg::keys{"release": - email => "release@$domain", - #FIXME there should be a variable somewhere to change the name of the distribution - key_name => 'Mageia Release', - login => $sign_login, - batchdir => "$sign_home_dir/batches", - keydir => $sign_keydir, - require => User[$sign_login], - } + gnupg::keys{ 'release': + email => "release@$::domain", + #FIXME there should be a variable somewhere to change the name of the distribution + key_name => 'Mageia Release', + login => $sign_login, + batchdir => "$sign_home_dir/batches", + keydir => $sign_keydir, + require => User[$sign_login], + } - local_script { "sign_checksums": - content => template("releasekey/sign_checksums"), - } + local_script { 'sign_checksums': + content => template('releasekey/sign_checksums'), } } |