From 6dcdbb594845d779406e72133003a9495467f2ce Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 20 Dec 2011 14:39:51 +0000 Subject: allow apache to write in cache directory --- deployment/websites/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deployment/websites/manifests/init.pp b/deployment/websites/manifests/init.pp index 34593b1a..a294cf3f 100644 --- a/deployment/websites/manifests/init.pp +++ b/deployment/websites/manifests/init.pp @@ -28,10 +28,19 @@ class websites { $vhostdir = "$webdatadir/www.$domain" $svn_location = "svn://svn.$domain/svn/web/www/trunk" + apache::apache_group + 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, -- cgit v1.2.1