diff options
Diffstat (limited to 'modules/buildsystem')
-rw-r--r-- | modules/buildsystem/manifests/var/webstatus.pp | 3 | ||||
-rw-r--r-- | modules/buildsystem/templates/bs-webstatus.conf | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/var/webstatus.pp b/modules/buildsystem/manifests/var/webstatus.pp index 1d5ca526..993390db 100644 --- a/modules/buildsystem/manifests/var/webstatus.pp +++ b/modules/buildsystem/manifests/var/webstatus.pp @@ -6,6 +6,8 @@ # path of the directory where the webstatus files are located # $package_commit_url: # url to view a commit on a package. %d is replaced by the commit id. +# $max_modified: +# how much history should we display, in days # $theme_name: # name of the webstatus theme # $themes_dir: @@ -16,6 +18,7 @@ class buildsystem::var::webstatus( $hostname = "pkgsubmit.$::domain", $location = '/var/www/bs', $package_commit_url, + $max_modified = '2', $theme_name = 'mageia', $themes_dir = '/var/www/bs/themes/' ) { diff --git a/modules/buildsystem/templates/bs-webstatus.conf b/modules/buildsystem/templates/bs-webstatus.conf index fdef02c5..bfb6c904 100644 --- a/modules/buildsystem/templates/bs-webstatus.conf +++ b/modules/buildsystem/templates/bs-webstatus.conf @@ -7,7 +7,7 @@ $g_webapp_dir = '<%= scope.lookupvar('buildsystem::var::webstatus::location') %> $upload_dir = '<%= scope.lookupvar('buildsystem::var::scheduler::homedir') %>/uploads'; /** How long a history should we keep, in days. */ -$max_modified = 2; +$max_modified = <%= scope.lookupvar('buildsystem::var::webstatus::max_modified') %>; /** How many nodes are available. */ $g_nodes_count = 2; |