/[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 3096 - (show annotations) (download)
Tue May 21 10:33:40 2013 UTC (10 years, 10 months ago) by boklm
File size: 1415 byte(s)
websites::www: remove apache::mod::geoip

As it doesn't seem to be used (only php-geoip is used), and is not
available in Mageia.
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
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::var::apache_group,
21 mode => '0660',
22 }
23
24 apache::vhost::base { $vhost:
25 content => template('websites/vhost_www.conf',
26 'websites/vhost_www_rewrite.conf'),
27 location => $vhostdir,
28 options => ['FollowSymLinks'],
29 }
30
31 apache::vhost::base { "ssl_$vhost":
32 use_ssl => true,
33 vhost => $vhost,
34 content => template('websites/vhost_www.conf',
35 'websites/vhost_www_rewrite.conf'),
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