From 9069208922bd02f233556eb0d2936a9c62d863e0 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 8 Jan 2012 20:25:06 +0000 Subject: split websites module in smaller pieces --- deployment/websites/manifests/www.pp | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 deployment/websites/manifests/www.pp (limited to 'deployment/websites/manifests/www.pp') 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']: } + } +} -- cgit v1.2.1