aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/var/scheduler.pp7
-rw-r--r--modules/buildsystem/templates/upload.conf2
2 files changed, 7 insertions, 2 deletions
diff --git a/modules/buildsystem/manifests/var/scheduler.pp b/modules/buildsystem/manifests/var/scheduler.pp
index 47933b0b..a6b9ef4f 100644
--- a/modules/buildsystem/manifests/var/scheduler.pp
+++ b/modules/buildsystem/manifests/var/scheduler.pp
@@ -1,4 +1,9 @@
-class buildsystem::var::scheduler {
+# $admin_mail:
+# the email address from which the build failure notifications
+# will be sent
+class buildsystem::var::scheduler(
+ $admin_mail = "root@${::domain}"
+){
$login = 'schedbot'
$homedir = "/var/lib/$login"
$logdir = "/var/log/$login"
diff --git a/modules/buildsystem/templates/upload.conf b/modules/buildsystem/templates/upload.conf
index a5c7ed8d..c3471219 100644
--- a/modules/buildsystem/templates/upload.conf
+++ b/modules/buildsystem/templates/upload.conf
@@ -89,7 +89,7 @@ my $homedir = "<%= scope.lookupvar('buildsystem::var::iurt::homedir') %>";
}
-%>
},
- admin => 'mageia-sysadm@mageia.org',
+ admin => '<%= scope.lookupvar('buildsystem::var::scheduler::admin_mail') %>',
http_queue => 'http://<%= scope.lookupvar('buildsystem::var::webstatus::hostname') %>/uploads',
upload_user => '<%= scope.lookupvar('buildsystem::var::scheduler::login') %>',
email_domain => '<%= domain %>',