aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-02-11 16:46:37 +0000
committerNicolas Vigier <boklm@mageia.org>2011-02-11 16:46:37 +0000
commit1dabe4b15e5a34d4207966acf150b4fb14fae9c2 (patch)
tree65a88d8c8a024289c54034892aad7255947c280c /deployment/websites/manifests
parent782a76ecdaf656d01400812a659485b5f6052f5d (diff)
downloadpuppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar
puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar.gz
puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar.bz2
puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar.xz
puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.zip
add vhost for static.mageia.org
Diffstat (limited to 'deployment/websites/manifests')
-rw-r--r--deployment/websites/manifests/init.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/deployment/websites/manifests/init.pp b/deployment/websites/manifests/init.pp
index 975a32e1..dbc09c0e 100644
--- a/deployment/websites/manifests/init.pp
+++ b/deployment/websites/manifests/init.pp
@@ -1,4 +1,16 @@
class websites {
+ class base {
+ # FIXME :
+ # We should be able to define this path on each host.
+ # Maybe using Facter ?
+ $webdatadir = '/srv/web1-dd0/www'
+
+ file { "$webdatadir":
+ ensure => directory,
+ mode => 755,
+ }
+ }
+
# should expire on June 2011
class donate {
apache::vhost_other_app { "donate.$domain":
@@ -6,6 +18,19 @@ class websites {
}
}
+ # vhost to host static files used by web sites
+ class static inherits base {
+ $vhostdir = "$webdatadir/static.$domain"
+ $svn_location = "svn://svn.$domain/svn/web/www/trunk/g/"
+ apache::vhost_other_app { "static.$domain":
+ vhost_file => 'websites/vhost_static.conf',
+ }
+
+ subversion::snapshot { $vhostdir:
+ source => $svn_location
+ }
+ }
+
class svn {
apache::vhost_redirect { "svn.$domain":
url => "http://svnweb.$domain/",