From 96aa16c722369cdd51976e9b1d0d3ded63659999 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 5 May 2011 10:24:56 +0000 Subject: add hugs class --- deployment/websites/manifests/init.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'deployment/websites/manifests') 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/", -- cgit v1.2.1