aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/init.pp8
-rw-r--r--modules/buildsystem/templates/signbot-rpmmacros3
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp
index ea2fbcaa..7df10179 100644
--- a/modules/buildsystem/manifests/init.pp
+++ b/modules/buildsystem/manifests/init.pp
@@ -80,6 +80,14 @@ class buildsystem {
sudo::sudoers_config { "signpackage":
content => template("buildsystem/sudoers.signpackage")
}
+
+ file { "$sign_home_dir/.rpmmacros":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("buildsystem/signbot-rpmmacros")
+ }
}
class scheduler {
diff --git a/modules/buildsystem/templates/signbot-rpmmacros b/modules/buildsystem/templates/signbot-rpmmacros
new file mode 100644
index 00000000..aab7e389
--- /dev/null
+++ b/modules/buildsystem/templates/signbot-rpmmacros
@@ -0,0 +1,3 @@
+%__gpg_sign_cmd %{__gpg} \
+ gpg --batch --force-v3-sigs --no-verbose --no-armor --passphrase-fd 3 --no-secmem-warning \
+ -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}