/[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 2916 - (show annotations) (download)
Mon Dec 10 19:54:47 2012 UTC (11 years, 7 months ago) by boklm
File size: 1440 byte(s)
Create apache::var and move apache config options

Move apache options to apache::var class
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_proxy_mailman.conf'),
28 location => $vhostdir,
29 options => ['FollowSymLinks'],
30 }
31
32 apache::vhost::base { "ssl_$vhost":
33 use_ssl => true,
34 vhost => $vhost,
35 content => template('websites/vhost_www.conf',
36 'websites/vhost_proxy_mailman_ssl.conf'),
37 location => $vhostdir,
38 options => ['FollowSymLinks'],
39 }
40
41 apache::vhost_redirect { $::domain:
42 url => "http://www.$::domain/",
43 }
44
45 apache::vhost_redirect { "ssl_$::domain":
46 use_ssl => true,
47 vhost => $::domain,
48 url => "https://www.$::domain/",
49 }
50
51 package { ['php-mbstring', 'php-mcrypt', 'php-gettext', 'php-geoip']: }
52 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30