/[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 2465 - (show annotations) (download)
Tue Feb 21 18:34:40 2012 UTC (9 years, 5 months ago) by pterjan
File size: 1510 byte(s)
install php-geoip on www
1 class websites {
2 class www inherits base {
3 $vhost = "www.$domain"
4 $vhostdir = "$webdatadir/www.$domain"
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 owner => root,
21 group => $apache::base::apache_group,
22 mode => 0660,
23 }
24
25 apache::vhost_base { "$vhost":
26 content => template('websites/vhost_www.conf', "websites/vhost_proxy_mailman.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', "websites/vhost_proxy_mailman_ssl.conf"),
35 location => $vhostdir,
36 options => ['FollowSymLinks'],
37 }
38
39 apache::vhost_redirect { $domain:
40 url => 'http://www.mageia.org/',
41 }
42
43 apache::vhost_redirect { "ssl_$domain":
44 use_ssl => true,
45 vhost => $domain,
46 url => 'https://www.mageia.org/',
47 }
48
49 package { ['php-mbstring', 'php-mcrypt', 'php-gettext', 'php-geoip']: }
50 }
51 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28