aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/webstatus.pp
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:04:25 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:04:25 +0000
commit9b9b0666f8593bba45a7fdce1cdc76d6f5090c41 (patch)
tree8d073ee5736e4efd692859440a690f10c978ffbe /modules/buildsystem/manifests/webstatus.pp
parent2287b34f3ef8bf672034f05a17e27aece4d17969 (diff)
downloadpuppet-9b9b0666f8593bba45a7fdce1cdc76d6f5090c41.tar
puppet-9b9b0666f8593bba45a7fdce1cdc76d6f5090c41.tar.gz
puppet-9b9b0666f8593bba45a7fdce1cdc76d6f5090c41.tar.bz2
puppet-9b9b0666f8593bba45a7fdce1cdc76d6f5090c41.tar.xz
puppet-9b9b0666f8593bba45a7fdce1cdc76d6f5090c41.zip
buildsystem: rename pkgsubmit to webstatus
Rename buildsystem::pkgsubmit to buildsystem::webstatus. pkgsubmit name has been used as the name of the host to submit packages, and the hostname of the web page to view the buildsystem status, but the two are different things, so they should be separated.
Diffstat (limited to 'modules/buildsystem/manifests/webstatus.pp')
-rw-r--r--modules/buildsystem/manifests/webstatus.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/buildsystem/manifests/webstatus.pp b/modules/buildsystem/manifests/webstatus.pp
new file mode 100644
index 00000000..9ed617ed
--- /dev/null
+++ b/modules/buildsystem/manifests/webstatus.pp
@@ -0,0 +1,22 @@
+class buildsystem::webstatus {
+ include buildsystem::var::scheduler
+ $sched_home_dir = $buildsystem::var::scheduler::homedir
+
+ $location = '/var/www/bs'
+ file { [$location,"$location/data"]:
+ ensure => directory,
+ }
+
+ apache::vhost::base { "pkgsubmit.$::domain":
+ aliases => {
+ '/uploads' => "$sched_home_dir/uploads",
+ '/autobuild/cauldron/x86_64/core/log/status.core.log' => "$location/autobuild/broken.php"
+ },
+ location => $location,
+ content => template('buildsystem/vhost_webstatus.conf'),
+ }
+
+ subversion::snapshot { $location:
+ source => "svn://svn.$::domain/soft/buildsystem/web/",
+ }
+}