aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
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