From 62b42993b86e6fcedbe947d960e0b870d6b0f18f Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 23 May 2013 15:07:53 +0000 Subject: buildsystem::var::webstatus: add max_modified option Add an option to select how much history should be displayed. --- modules/buildsystem/manifests/var/webstatus.pp | 3 +++ modules/buildsystem/templates/bs-webstatus.conf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1