/[adm]/puppet/modules/buildsystem/manifests/webstatus.pp
ViewVC logotype

Contents of /puppet/modules/buildsystem/manifests/webstatus.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3314 - (show annotations) (download)
Thu Aug 8 22:49:42 2013 UTC (7 years, 2 months ago) by pterjan
File size: 1635 byte(s)
Fix autobuild alias (used by youri-check Build test)
1 class buildsystem::webstatus {
2 include buildsystem::var::webstatus
3 include buildsystem::var::scheduler
4 include apache::mod::php
5
6 file { [ $buildsystem::var::webstatus::location, "${buildsystem::var::webstatus::location}/data" ]:
7 ensure => directory,
8 }
9
10 $vhost = $buildsystem::var::webstatus::hostname
11 apache::vhost::base { $vhost:
12 aliases => {
13 '/uploads' => "${buildsystem::var::scheduler::homedir}/uploads",
14 '/autobuild/cauldron/x86_64/core/log/status.core.log' => "${buildsystem::var::webstatus::location}/autobuild/broken.php",
15 '/themes' => $buildsystem::var::webstatus::themes_dir,
16 },
17 location => $buildsystem::var::webstatus::location,
18 content => template('buildsystem/vhost_webstatus.conf'),
19 }
20
21 apache::vhost::base { "ssl_${vhost}":
22 vhost => $vhost,
23 use_ssl => true,
24 aliases => {
25 '/uploads' => "${buildsystem::var::scheduler::homedir}/uploads",
26 '/autobuild/cauldron/x86_64/core/log/status.core.log' => "${buildsystem::var::webstatus::location}/autobuild/broken.php",
27 '/themes' => $buildsystem::var::webstatus::themes_dir,
28 },
29 location => $buildsystem::var::webstatus::location,
30 content => template('buildsystem/vhost_webstatus.conf'),
31 }
32
33 subversion::snapshot { $buildsystem::var::webstatus::location:
34 source => $buildsystem::var::webstatus::svn_url,
35 }
36
37 file { '/etc/bs-webstatus.conf':
38 ensure => present,
39 content => template('buildsystem/bs-webstatus.conf'),
40 mode => 0644,
41 owner => root,
42 group => root,
43 }
44 }

  ViewVC Help
Powered by ViewVC 1.1.28