/[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 2685 - (show annotations) (download)
Sun Mar 25 12:20:32 2012 UTC (12 years ago) by misc
File size: 1383 byte(s)
use the new name for mod_php module
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::mod::php
8 include apache::mod::geoip
9
10 # for mailman reverse proxy, on ssl
11 include apache::mod::proxy
12 include apache::mod::ssl
13
14 subversion::snapshot { $vhostdir:
15 source => $svn_location,
16 }
17
18 file { "$vhostdir/var/tmp/cache":
19 ensure => directory,
20 group => $apache::base::apache_group,
21 mode => '0660',
22 }
23
24 $mailman_content = template('websites/vhost_www.conf',
25 'websites/vhost_proxy_mailman.conf')
26 apache::vhost_base { $vhost:
27 content => $mailman_content,
28 location => $vhostdir,
29 options => ['FollowSymLinks'],
30 }
31
32 apache::vhost_base { "ssl_$vhost":
33 use_ssl => true,
34 vhost => $vhost,
35 content => $mailman_content,
36 location => $vhostdir,
37 options => ['FollowSymLinks'],
38 }
39
40 apache::vhost_redirect { $::domain:
41 url => "http://www.$::domain/",
42 }
43
44 apache::vhost_redirect { "ssl_$::domain":
45 use_ssl => true,
46 vhost => $::domain,
47 url => "https://www.$::domain/",
48 }
49
50 package { ['php-mbstring', 'php-mcrypt', 'php-gettext', 'php-geoip']: }
51 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30