/[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 3046 - (hide annotations) (download)
Sun Apr 14 14:38:33 2013 UTC (11 years ago) by boklm
File size: 1568 byte(s)
websites: rewrite mailman 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 3046 'websites/vhost_www_rewrite.conf',
28 boklm 2718 'websites/vhost_proxy_mailman.conf'),
29 misc 2578 location => $vhostdir,
30     options => ['FollowSymLinks'],
31     }
32 misc 2203
33 misc 2691 apache::vhost::base { "ssl_$vhost":
34 misc 2578 use_ssl => true,
35     vhost => $vhost,
36 boklm 2718 content => template('websites/vhost_www.conf',
37 boklm 3046 'websites/vhost_www_rewrite.conf',
38 boklm 2718 'websites/vhost_proxy_mailman_ssl.conf'),
39 misc 2578 location => $vhostdir,
40     options => ['FollowSymLinks'],
41     }
42 misc 2203
43 misc 2578 apache::vhost_redirect { $::domain:
44     url => "http://www.$::domain/",
45     }
46 misc 2203
47 misc 2578 apache::vhost_redirect { "ssl_$::domain":
48     use_ssl => true,
49     vhost => $::domain,
50     url => "https://www.$::domain/",
51     }
52 misc 2203
53 misc 2578 package { ['php-mbstring', 'php-mcrypt', 'php-gettext', 'php-geoip']: }
54 misc 2203 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30