diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/buildsystem/manifests/var/webstatus.pp | 12 | ||||
-rw-r--r-- | modules/buildsystem/manifests/webstatus.pp | 8 | ||||
-rw-r--r-- | modules/buildsystem/templates/bs-webstatus.conf | 32 |
3 files changed, 51 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/var/webstatus.pp b/modules/buildsystem/manifests/var/webstatus.pp index 371db756..1d5ca526 100644 --- a/modules/buildsystem/manifests/var/webstatus.pp +++ b/modules/buildsystem/manifests/var/webstatus.pp @@ -4,9 +4,19 @@ # vhost name of the webstatus page # $location: # 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. +# $theme_name: +# name of the webstatus theme +# $themes_dir: +# path of the directory where the themes are located. If you want +# to use a theme not included in webstatus, you need to change this. class buildsystem::var::webstatus( $svn_url = "svn://svn.mageia.org/soft/build_system/web/", $hostname = "pkgsubmit.$::domain", - $location = '/var/www/bs' + $location = '/var/www/bs', + $package_commit_url, + $theme_name = 'mageia', + $themes_dir = '/var/www/bs/themes/' ) { } diff --git a/modules/buildsystem/manifests/webstatus.pp b/modules/buildsystem/manifests/webstatus.pp index b2607e07..2a871b26 100644 --- a/modules/buildsystem/manifests/webstatus.pp +++ b/modules/buildsystem/manifests/webstatus.pp @@ -18,4 +18,12 @@ class buildsystem::webstatus { subversion::snapshot { $buildsystem::var::webstatus::location: source => $buildsystem::var::webstatus::svn_url, } + + file { '/etc/bs-webstatus.conf': + ensure => present, + content => template('buildsystem/bs-webstatus.conf'), + mode => 0644, + owner => root, + group => root, + } } diff --git a/modules/buildsystem/templates/bs-webstatus.conf b/modules/buildsystem/templates/bs-webstatus.conf new file mode 100644 index 00000000..fdef02c5 --- /dev/null +++ b/modules/buildsystem/templates/bs-webstatus.conf @@ -0,0 +1,32 @@ +<?php + +/** Where is the current app located. */ +$g_webapp_dir = '<%= scope.lookupvar('buildsystem::var::webstatus::location') %>'; + +/** Full system path where packages are uploaded. */ +$upload_dir = '<%= scope.lookupvar('buildsystem::var::scheduler::homedir') %>/uploads'; + +/** How long a history should we keep, in days. */ +$max_modified = 2; + +/** How many nodes are available. */ +$g_nodes_count = 2; + +/** html > body > h1 title */ +$title = 'Build system status'; + +/** Should crawlers index this page or not? meta[robots] tag.*/ +$robots = 'index,nofollow,nosnippet,noarchive'; + +/** */ +$g_root_url = 'http://<%= scope.lookupvar('buildsystem::var::webstatus::hostname') %>/'; + +/** URL to view a package svn revision. %d is replaced by the revision */ +$package_commit_url = '<%= scope.lookupvar('buildsystem::var::webstatus::package_commit_url') %>'; + +/** name of the theme */ +$theme_name = '<%= scope.lookupvar('buildsystem::var::webstatus::theme_name') %>'; + +/** themes directory */ +$themes_dir = '<%= scope.lookupvar('buildsystem::var::webstatus::themes_dir') %>'; + |