1 |
misc |
656 |
class websites { |
2 |
boklm |
1010 |
class base { |
3 |
boklm |
1608 |
$webdatadir = '/var/www/vhosts' |
4 |
boklm |
1010 |
} |
5 |
|
|
|
6 |
misc |
656 |
# should expire on June 2011 |
7 |
|
|
class donate { |
8 |
|
|
apache::vhost_other_app { "donate.$domain": |
9 |
|
|
vhost_file => "websites/vhost_donate.conf", |
10 |
|
|
} |
11 |
|
|
} |
12 |
misc |
955 |
|
13 |
boklm |
1010 |
# vhost to host static files used by web sites |
14 |
|
|
class static inherits base { |
15 |
|
|
$vhostdir = "$webdatadir/static.$domain" |
16 |
|
|
$svn_location = "svn://svn.$domain/svn/web/www/trunk/g/" |
17 |
|
|
apache::vhost_other_app { "static.$domain": |
18 |
|
|
vhost_file => 'websites/vhost_static.conf', |
19 |
|
|
} |
20 |
|
|
|
21 |
boklm |
1015 |
file { $vhostdir: |
22 |
|
|
ensure => directory, |
23 |
|
|
mode => 655, |
24 |
|
|
} |
25 |
|
|
|
26 |
|
|
subversion::snapshot { "$vhostdir/g": |
27 |
boklm |
1010 |
source => $svn_location |
28 |
|
|
} |
29 |
|
|
} |
30 |
|
|
|
31 |
boklm |
1583 |
class hugs inherits base { |
32 |
|
|
$vhostdir = "$webdatadir/hugs.$domain" |
33 |
|
|
$svn_location = "svn://svn.$domain/svn/web/hugs/public/" |
34 |
|
|
apache::vhost_base { "hugs.$domain": |
35 |
|
|
location => $vhostdir, |
36 |
|
|
} |
37 |
|
|
|
38 |
|
|
subversion::snapshot { "$vhostdir": |
39 |
|
|
source => $svn_location |
40 |
|
|
} |
41 |
boklm |
1643 |
|
42 |
|
|
package { php-exif: |
43 |
|
|
ensure => "installed", |
44 |
|
|
} |
45 |
boklm |
1583 |
} |
46 |
|
|
|
47 |
boklm |
1592 |
class releases inherits base { |
48 |
|
|
$vhostdir = "$webdatadir/releases.$domain" |
49 |
|
|
$svn_location = "svn://svn.$domain/svn/web/releases/" |
50 |
|
|
apache::vhost_base { "releases.$domain": |
51 |
|
|
location => $vhostdir, |
52 |
pterjan |
1599 |
options => [ "FollowSymLinks" ] |
53 |
boklm |
1592 |
} |
54 |
boklm |
1607 |
apache::vhost_base { "ssl_releases.$domain": |
55 |
|
|
vhost => "releases.$domain", |
56 |
|
|
use_ssl => true, |
57 |
|
|
location => $vhostdir, |
58 |
|
|
options => [ "FollowSymLinks" ] |
59 |
|
|
} |
60 |
boklm |
1592 |
|
61 |
|
|
subversion::snapshot { "$vhostdir": |
62 |
|
|
source => $svn_location |
63 |
|
|
} |
64 |
|
|
} |
65 |
|
|
|
66 |
misc |
955 |
class svn { |
67 |
|
|
apache::vhost_redirect { "svn.$domain": |
68 |
|
|
url => "http://svnweb.$domain/", |
69 |
|
|
} |
70 |
|
|
} |
71 |
misc |
1104 |
|
72 |
|
|
class forum_proxy { |
73 |
|
|
|
74 |
|
|
$web_domain = "forums.$domain" |
75 |
|
|
host { "$web_domain": |
76 |
|
|
ip => '192.168.122.131', |
77 |
|
|
ensure => 'present', |
78 |
|
|
} |
79 |
|
|
|
80 |
|
|
apache::vhost_reverse_proxy { "$web_domain": |
81 |
|
|
url => "http://$web_domain/", |
82 |
|
|
} |
83 |
|
|
|
84 |
|
|
apache::vhost_reverse_proxy { "ssl_$web_domain": |
85 |
|
|
vhost => $web_domain, |
86 |
|
|
use_ssl => true, |
87 |
|
|
url => "http://$web_domain/", |
88 |
|
|
} |
89 |
|
|
} |
90 |
misc |
656 |
} |