aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-02-07 18:43:41 +0000
committerNicolas Vigier <boklm@mageia.org>2011-02-07 18:43:41 +0000
commitb5c5034c5efc9b1ee0903df4da6e0b773d427b15 (patch)
tree0a589dc95731ce155e39d86db275498bb824c1ca /modules/buildsystem
parent33f9abe4f64c028a4382c752e1dec83b9620c7e1 (diff)
downloadpuppet-b5c5034c5efc9b1ee0903df4da6e0b773d427b15.tar
puppet-b5c5034c5efc9b1ee0903df4da6e0b773d427b15.tar.gz
puppet-b5c5034c5efc9b1ee0903df4da6e0b773d427b15.tar.bz2
puppet-b5c5034c5efc9b1ee0903df4da6e0b773d427b15.tar.xz
puppet-b5c5034c5efc9b1ee0903df4da6e0b773d427b15.zip
add sudoers config to allow schedbot to run mga-signpackage as signbot
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/init.pp4
-rw-r--r--modules/buildsystem/templates/sudoers.signpackage1
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp
index 4b360f51..83789592 100644
--- a/modules/buildsystem/manifests/init.pp
+++ b/modules/buildsystem/manifests/init.pp
@@ -73,6 +73,10 @@ class buildsystem {
batchdir => "$sign_home_dir/batches",
keydir => "$sign_home_dir/keys",
}
+
+ sudo::sudoers_config { "signpackage":
+ content => template("buildsystem/sudoers.signpackage")
+ }
}
class scheduler {
diff --git a/modules/buildsystem/templates/sudoers.signpackage b/modules/buildsystem/templates/sudoers.signpackage
new file mode 100644
index 00000000..85774716
--- /dev/null
+++ b/modules/buildsystem/templates/sudoers.signpackage
@@ -0,0 +1 @@
+<%= build_login %> ALL =(<%= sign_login %>) NOPASSWD: /usr/bin/mga-signpackage