/[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 1643 - (show annotations) (download)
Thu May 26 14:24:52 2011 UTC (12 years, 10 months ago) by boklm
File size: 2129 byte(s)
install php-exif for hugs.mageia.org
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 package { php-exif:
43 ensure => "installed",
44 }
45 }
46
47 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 options => [ "FollowSymLinks" ]
53 }
54 apache::vhost_base { "ssl_releases.$domain":
55 vhost => "releases.$domain",
56 use_ssl => true,
57 location => $vhostdir,
58 options => [ "FollowSymLinks" ]
59 }
60
61 subversion::snapshot { "$vhostdir":
62 source => $svn_location
63 }
64 }
65
66 class svn {
67 apache::vhost_redirect { "svn.$domain":
68 url => "http://svnweb.$domain/",
69 }
70 }
71
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 }

  ViewVC Help
Powered by ViewVC 1.1.30