aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/www.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-08 20:25:06 +0000
committerMichael Scherer <misc@mageia.org>2012-01-08 20:25:06 +0000
commit9069208922bd02f233556eb0d2936a9c62d863e0 (patch)
treeda5e5845ce235cb6bbe991adc32978573c2c0342 /deployment/websites/manifests/www.pp
parent75428aced2ec67b0e69a92c01e6ae2529325c2cf (diff)
downloadpuppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar
puppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar.gz
puppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar.bz2
puppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar.xz
puppet-9069208922bd02f233556eb0d2936a9c62d863e0.zip
split websites module in smaller pieces
Diffstat (limited to 'deployment/websites/manifests/www.pp')
-rw-r--r--deployment/websites/manifests/www.pp47
1 files changed, 47 insertions, 0 deletions
diff --git a/deployment/websites/manifests/www.pp b/deployment/websites/manifests/www.pp
new file mode 100644
index 00000000..63055946
--- /dev/null
+++ b/deployment/websites/manifests/www.pp
@@ -0,0 +1,47 @@
+class buildsystem {
+ class www inherits base {
+ $vhost = "www.$domain"
+ $vhostdir = "$webdatadir/www.$domain"
+ $svn_location = "svn://svn.$domain/svn/web/www/trunk"
+
+ include apache::mod_php
+ include apache::mod_geoip
+
+ subversion::snapshot { $vhostdir:
+ source => $svn_location,
+ }
+
+ file { "$vhostdir/var/tmp/cache":
+ ensure => directory,
+ owner => root,
+ group => $apache::base::apache_group,
+ mode => 0660,
+ }
+
+ apache::vhost_base { "$vhost":
+ content => template('websites/vhost_www.conf'),
+ location => $vhostdir,
+ options => ['FollowSymLinks'],
+ }
+
+ apache::vhost_base { "ssl_$vhost":
+ use_ssl => true,
+ vhost => $vhost,
+ content => template('websites/vhost_www.conf'),
+ location => $vhostdir,
+ options => ['FollowSymLinks'],
+ }
+
+ apache::vhost_redirect { $domain:
+ url => 'http://www.mageia.org/',
+ }
+
+ apache::vhost_redirect { "ssl_$domain":
+ use_ssl => true,
+ vhost => $domain,
+ url => 'https://www.mageia.org/',
+ }
+
+ package { ['php-mbstring', 'php-mcrypt', 'php-gettext']: }
+ }
+}