aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:07:53 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:07:53 +0000
commit62b42993b86e6fcedbe947d960e0b870d6b0f18f (patch)
tree2fe042cb0a7fa98f8239800b69078b74a37912d7 /modules/buildsystem
parentb2af3916f62085a298273392088f1c0d931dd49c (diff)
downloadpuppet-62b42993b86e6fcedbe947d960e0b870d6b0f18f.tar
puppet-62b42993b86e6fcedbe947d960e0b870d6b0f18f.tar.gz
puppet-62b42993b86e6fcedbe947d960e0b870d6b0f18f.tar.bz2
puppet-62b42993b86e6fcedbe947d960e0b870d6b0f18f.tar.xz
puppet-62b42993b86e6fcedbe947d960e0b870d6b0f18f.zip
buildsystem::var::webstatus: add max_modified option
Add an option to select how much history should be displayed.
Diffstat (limited to 'modules/buildsystem')
-rw-r--r--modules/buildsystem/manifests/var/webstatus.pp3
-rw-r--r--modules/buildsystem/templates/bs-webstatus.conf2
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;