aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-05-05 10:24:56 +0000
committerNicolas Vigier <boklm@mageia.org>2011-05-05 10:24:56 +0000
commit96aa16c722369cdd51976e9b1d0d3ded63659999 (patch)
tree540f8806cfe0943fd5b49935ed00ab8e337e6abc /deployment/websites
parent06cfd97c25b98e7cb43e5d2d0a081bfe85a28010 (diff)
downloadpuppet-96aa16c722369cdd51976e9b1d0d3ded63659999.tar
puppet-96aa16c722369cdd51976e9b1d0d3ded63659999.tar.gz
puppet-96aa16c722369cdd51976e9b1d0d3ded63659999.tar.bz2
puppet-96aa16c722369cdd51976e9b1d0d3ded63659999.tar.xz
puppet-96aa16c722369cdd51976e9b1d0d3ded63659999.zip
add hugs class
Diffstat (limited to 'deployment/websites')
-rw-r--r--deployment/websites/manifests/init.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/deployment/websites/manifests/init.pp b/deployment/websites/manifests/init.pp
index 83bb88b7..067318b2 100644
--- a/deployment/websites/manifests/init.pp
+++ b/deployment/websites/manifests/init.pp
@@ -36,6 +36,23 @@ class websites {
}
}
+ class hugs inherits base {
+ $vhostdir = "$webdatadir/hugs.$domain"
+ $svn_location = "svn://svn.$domain/svn/web/hugs/public/"
+ apache::vhost_base { "hugs.$domain":
+ location => $vhostdir,
+ }
+
+ file { $vhostdir:
+ ensure => directory,
+ mode => 755,
+ }
+
+ subversion::snapshot { "$vhostdir":
+ source => $svn_location
+ }
+ }
+
class svn {
apache::vhost_redirect { "svn.$domain":
url => "http://svnweb.$domain/",