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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3046 - (show annotations) (download)
Sun Apr 14 14:38:33 2013 UTC (10 years, 11 months ago) by boklm
File size: 1568 byte(s)
websites: rewrite mailman urls
1 class websites::www {
2 include websites::base
3 $vhost = "www.$::domain"
4 $vhostdir = "$websites::base::webdatadir/$vhost"
5 $svn_location = "svn://svn.$::domain/svn/web/www/trunk"
6
7 include apache::var
8 include apache::mod::php
9 include apache::mod::geoip
10
11 # for mailman reverse proxy, on ssl
12 include apache::mod::proxy
13 include apache::mod::ssl
14
15 subversion::snapshot { $vhostdir:
16 source => $svn_location,
17 }
18
19 file { "$vhostdir/var/tmp/cache":
20 ensure => directory,
21 group => $apache::var::apache_group,
22 mode => '0660',
23 }
24
25 apache::vhost::base { $vhost:
26 content => template('websites/vhost_www.conf',
27 'websites/vhost_www_rewrite.conf',
28 'websites/vhost_proxy_mailman.conf'),
29 location => $vhostdir,
30 options => ['FollowSymLinks'],
31 }
32
33 apache::vhost::base { "ssl_$vhost":
34 use_ssl => true,
35 vhost => $vhost,
36 content => template('websites/vhost_www.conf',
37 'websites/vhost_www_rewrite.conf',
38 'websites/vhost_proxy_mailman_ssl.conf'),
39 location => $vhostdir,
40 options => ['FollowSymLinks'],
41 }
42
43 apache::vhost_redirect { $::domain:
44 url => "http://www.$::domain/",
45 }
46
47 apache::vhost_redirect { "ssl_$::domain":
48 use_ssl => true,
49 vhost => $::domain,
50 url => "https://www.$::domain/",
51 }
52
53 package { ['php-mbstring', 'php-mcrypt', 'php-gettext', 'php-geoip']: }
54 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30