From 8f8d5a78a318787329d4103480abcb1051163073 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 7 Feb 2011 12:06:01 +0000 Subject: create packages key --- modules/buildsystem/manifests/init.pp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'modules/buildsystem/manifests') diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index c153211e..4b360f51 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -28,12 +28,6 @@ class buildsystem { comment => "System user used to schedule builds", } - sshuser { $sign_login: - homedir => $sign_home_dir, - comment => "System user used to sign packages", - groups => [$sched_login], - } - ssh::auth::client { $sched_login: } ssh::auth::server { $sched_login: } ssh::auth::server { $build_login: } @@ -57,12 +51,30 @@ class buildsystem { include mgarepo include youri_submit include check_missing_deps + include signbot } class buildnode inherits base { include iurt } + class signbot { + sshuser { $sign_login: + homedir => $sign_home_dir, + comment => "System user used to sign packages", + groups => [$sched_login], + } + + 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 => $sign_login, + batchdir => "$sign_home_dir/batches", + keydir => "$sign_home_dir/keys", + } + } + class scheduler { # ulri include iurtupload -- cgit v1.2.1