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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3324 - (hide 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 boklm 3114 class buildsystem::webstatus {
2 boklm 3115 include buildsystem::var::webstatus
3 boklm 2924 include buildsystem::var::scheduler
4 boklm 3182 include apache::mod::php
5 misc 2538
6 boklm 3116 file { [ $buildsystem::var::webstatus::location, "${buildsystem::var::webstatus::location}/data" ]:
7 misc 2527 ensure => directory,
8     }
9    
10 boklm 3302 $vhost = $buildsystem::var::webstatus::hostname
11     apache::vhost::base { $vhost:
12 pterjan 2968 aliases => {
13 boklm 3117 '/uploads' => "${buildsystem::var::scheduler::homedir}/uploads",
14 pterjan 3314 '/autobuild/cauldron/x86_64/core/log/status.core.log' => "${buildsystem::var::webstatus::location}/autobuild/broken.php",
15 boklm 3183 '/themes' => $buildsystem::var::webstatus::themes_dir,
16 pterjan 2968 },
17 boklm 3116 location => $buildsystem::var::webstatus::location,
18 boklm 3114 content => template('buildsystem/vhost_webstatus.conf'),
19 misc 2527 }
20    
21 boklm 3302 apache::vhost::base { "ssl_${vhost}":
22     vhost => $vhost,
23     use_ssl => true,
24     aliases => {
25     '/uploads' => "${buildsystem::var::scheduler::homedir}/uploads",
26 pterjan 3314 '/autobuild/cauldron/x86_64/core/log/status.core.log' => "${buildsystem::var::webstatus::location}/autobuild/broken.php",
27 boklm 3302 '/themes' => $buildsystem::var::webstatus::themes_dir,
28     },
29     location => $buildsystem::var::webstatus::location,
30     content => template('buildsystem/vhost_webstatus.conf'),
31     }
32    
33 colin 3324 git::snapshot { $buildsystem::var::webstatus::location:
34     source => $buildsystem::var::webstatus::git_url,
35 misc 2527 }
36 boklm 3181
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 misc 2527 }

  ViewVC Help
Powered by ViewVC 1.1.28