/[adm]/puppet/deployment/websites/manifests/init.pp
ViewVC logotype

Contents of /puppet/deployment/websites/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1608 - (show annotations) (download)
Sun May 15 17:36:59 2011 UTC (12 years, 10 months ago) by boklm
File size: 2076 byte(s)
change $webdatadir to /var/www/vhosts
1 class websites {
2 class base {
3 $webdatadir = '/var/www/vhosts'
4 }
5
6 # 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
13 # 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 file { $vhostdir:
22 ensure => directory,
23 mode => 655,
24 }
25
26 subversion::snapshot { "$vhostdir/g":
27 source => $svn_location
28 }
29 }
30
31 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 }
42
43 class releases inherits base {
44 $vhostdir = "$webdatadir/releases.$domain"
45 $svn_location = "svn://svn.$domain/svn/web/releases/"
46 apache::vhost_base { "releases.$domain":
47 location => $vhostdir,
48 options => [ "FollowSymLinks" ]
49 }
50 apache::vhost_base { "ssl_releases.$domain":
51 vhost => "releases.$domain",
52 use_ssl => true,
53 location => $vhostdir,
54 options => [ "FollowSymLinks" ]
55 }
56
57 subversion::snapshot { "$vhostdir":
58 source => $svn_location
59 }
60 }
61
62 class svn {
63 apache::vhost_redirect { "svn.$domain":
64 url => "http://svnweb.$domain/",
65 }
66 }
67
68 class forum_proxy {
69
70 $web_domain = "forums.$domain"
71 host { "$web_domain":
72 ip => '192.168.122.131',
73 ensure => 'present',
74 }
75
76 apache::vhost_reverse_proxy { "$web_domain":
77 url => "http://$web_domain/",
78 }
79
80 apache::vhost_reverse_proxy { "ssl_$web_domain":
81 vhost => $web_domain,
82 use_ssl => true,
83 url => "http://$web_domain/",
84 }
85 }
86 }

  ViewVC Help
Powered by ViewVC 1.1.30