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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3047 - (hide annotations) (download)
Sun Apr 14 14:58:03 2013 UTC (11 years ago) by boklm
File size: 1446 byte(s)
websites: rewrite pipermail URLs
1 misc 2578 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 misc 2203
7 boklm 2916 include apache::var
8 misc 2685 include apache::mod::php
9 misc 2682 include apache::mod::geoip
10 misc 2203
11 misc 2578 # for mailman reverse proxy, on ssl
12 misc 2682 include apache::mod::proxy
13     include apache::mod::ssl
14 misc 2249
15 misc 2578 subversion::snapshot { $vhostdir:
16     source => $svn_location,
17     }
18 misc 2203
19 misc 2578 file { "$vhostdir/var/tmp/cache":
20     ensure => directory,
21 boklm 2916 group => $apache::var::apache_group,
22 misc 2578 mode => '0660',
23     }
24 misc 2203
25 misc 2691 apache::vhost::base { $vhost:
26 boklm 2718 content => template('websites/vhost_www.conf',
27 boklm 3047 'websites/vhost_www_rewrite.conf'),
28 misc 2578 location => $vhostdir,
29     options => ['FollowSymLinks'],
30     }
31 misc 2203
32 misc 2691 apache::vhost::base { "ssl_$vhost":
33 misc 2578 use_ssl => true,
34     vhost => $vhost,
35 boklm 2718 content => template('websites/vhost_www.conf',
36 boklm 3047 'websites/vhost_www_rewrite.conf'),
37 misc 2578 location => $vhostdir,
38     options => ['FollowSymLinks'],
39     }
40 misc 2203
41 misc 2578 apache::vhost_redirect { $::domain:
42     url => "http://www.$::domain/",
43     }
44 misc 2203
45 misc 2578 apache::vhost_redirect { "ssl_$::domain":
46     use_ssl => true,
47     vhost => $::domain,
48     url => "https://www.$::domain/",
49     }
50 misc 2203
51 misc 2578 package { ['php-mbstring', 'php-mcrypt', 'php-gettext', 'php-geoip']: }
52 misc 2203 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30