/[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 3324 - (show annotations) (download)
Tue Aug 20 23:52:10 2013 UTC (7 years, 2 months ago) by colin
File size: 1628 byte(s)
Switch the pkgsubmit website from an svn checkout to a git clone
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 git::snapshot { $buildsystem::var::webstatus::location:
34 source => $buildsystem::var::webstatus::git_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