diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-16 22:46:12 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-16 22:46:12 +0000 |
commit | e2085e64fa296d8dabccc0647162174f3fcd8858 (patch) | |
tree | bd868bcd6d4ee2e341bc04fd181022bba433b1b5 /modules/buildsystem/manifests | |
parent | 8795f00e8b49f8d46c99e7948c41b2483ad1f740 (diff) | |
download | puppet-e2085e64fa296d8dabccc0647162174f3fcd8858.tar puppet-e2085e64fa296d8dabccc0647162174f3fcd8858.tar.gz puppet-e2085e64fa296d8dabccc0647162174f3fcd8858.tar.bz2 puppet-e2085e64fa296d8dabccc0647162174f3fcd8858.tar.xz puppet-e2085e64fa296d8dabccc0647162174f3fcd8858.zip |
clean signbot.pp for puppet-lint compliance
Diffstat (limited to 'modules/buildsystem/manifests')
-rw-r--r-- | modules/buildsystem/manifests/signbot.pp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/modules/buildsystem/manifests/signbot.pp b/modules/buildsystem/manifests/signbot.pp index 36106584..266d6cd2 100644 --- a/modules/buildsystem/manifests/signbot.pp +++ b/modules/buildsystem/manifests/signbot.pp @@ -1,39 +1,39 @@ -class buildsystem { - class signbot { - $login = "signbot" - $home_dir = "/var/lib/$login" - $sign_keydir = "$home_dir/keys" - # FIXME: maybe keyid should be defined at an other place - $keyid = "80420F66" - # FIXME refactor with base class ( once variables are placed in a separate module ) - $sched_login = "schedbot" - - sshuser { $login: - homedir => $home_dir, - comment => "System user used to sign packages", - groups => [$sched_login], - } +class buildsystem::signbot { + $login = 'signbot' + $home_dir = "/var/lib/$login" + $sign_keydir = "$home_dir/keys" + # FIXME: maybe keyid should be defined at an other place + $keyid = '80420F66' + # FIXME refactor with base class ( once variables are + # placed in a separate module ) + $sched_login = 'schedbot' - gnupg::keys{"packages": - email => "packages@$domain", - #FIXME there should be a variable somewhere to change the name of the distribution - key_name => 'Mageia Packages', - login => $login, - batchdir => "$home_dir/batches", - keydir => $sign_keydir, - } + sshuser { $login: + homedir => $home_dir, + comment => 'System user used to sign packages', + groups => [$sched_login], + } - sudo::sudoers_config { "signpackage": - content => template("buildsystem/signbot/sudoers.signpackage") - } + gnupg::keys{ 'packages': + email => "packages@$::domain", + #FIXME there should be a variable somewhere to change + # the name of the distribution + key_name => 'Mageia Packages', + login => $login, + batchdir => "$home_dir/batches", + keydir => $sign_keydir, + } - file { "$home_dir/.rpmmacros": - content => template("buildsystem/signbot/signbot-rpmmacros") - } + sudo::sudoers_config { 'signpackage': + content => template('buildsystem/signbot/sudoers.signpackage') + } + + file { "$home_dir/.rpmmacros": + content => template('buildsystem/signbot/signbot-rpmmacros') + } - local_script { - "sign-check-package": content => template("buildsystem/signbot/sign-check-package"); - "mga-signpackage": content => template("buildsystem/signbot/mga-signpackage"); - } + local_script { + 'sign-check-package': content => template('buildsystem/signbot/sign-check-package'); + 'mga-signpackage': content => template('buildsystem/signbot/mga-signpackage'); } } |