aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-22 01:04:19 +0000
committerMichael Scherer <misc@mageia.org>2011-02-22 01:04:19 +0000
commit48e4e93c0e64ee6ade742cafe217221280b53115 (patch)
treefda399715b0b7f5cba04df7bd5abced678f2331d /modules/phpbb/manifests/init.pp
parentd3a585bdc784cf848b641e63c289a832a1e1360c (diff)
downloadpuppet-48e4e93c0e64ee6ade742cafe217221280b53115.tar
puppet-48e4e93c0e64ee6ade742cafe217221280b53115.tar.gz
puppet-48e4e93c0e64ee6ade742cafe217221280b53115.tar.bz2
puppet-48e4e93c0e64ee6ade742cafe217221280b53115.tar.xz
puppet-48e4e93c0e64ee6ade742cafe217221280b53115.zip
- set cache as writable by apache user
Diffstat (limited to 'modules/phpbb/manifests/init.pp')
-rw-r--r--modules/phpbb/manifests/init.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp
index 7dd14621..328f116a 100644
--- a/modules/phpbb/manifests/init.pp
+++ b/modules/phpbb/manifests/init.pp
@@ -72,6 +72,16 @@ class phpbb {
require => File["$forums_dir"]
}
+ # TODO manage the permission of the various subdirectories
+ $writable_dir = ['cache']
+ file { "$forums_dir/$lang/phpBB/$writable_dir":
+ ensure => directory,
+ owner => apache,
+ group => root,
+ mode => 755,
+ require => Exec["git_clone $lang"],
+ }
+
file { "$forums_dir/$lang/phpBB/config.php":
ensure => present,
owner => root,