diff options
author | andreas <andreas@immerda.ch> | 2009-02-15 22:28:15 +0000 |
---|---|---|
committer | andreas <andreas@immerda.ch> | 2009-02-15 22:28:15 +0000 |
commit | 2ec5b392cc57b321f2be3890888c8f5726742040 (patch) | |
tree | 04ebacbae7fc1c78d550e090a1367ba4cb9a366d | |
parent | 46048ca1d20ff884cd128993e02cbf8cc876c593 (diff) |
joomla file permissions
-rw-r--r-- | manifests/defines/permissions.pp | 18 | ||||
-rw-r--r-- | manifests/defines/vhost_varieties.pp | 20 |
2 files changed, 35 insertions, 3 deletions
diff --git a/manifests/defines/permissions.pp b/manifests/defines/permissions.pp new file mode 100644 index 0000000..4757f2e --- /dev/null +++ b/manifests/defines/permissions.pp @@ -0,0 +1,18 @@ +define apache::file::rw() { + file{$name: + mode => 660, + recurse => true + } +} + +define apache::dir::rw( + $uid = 'absent', + $gid = 'uid' +){ + file{$name: + ensure => directory, + mode => 0770 + } + selinux::dir::rw{$name:} +} + diff --git a/manifests/defines/vhost_varieties.pp b/manifests/defines/vhost_varieties.pp index 337dce4..78e2921 100644 --- a/manifests/defines/vhost_varieties.pp +++ b/manifests/defines/vhost_varieties.pp @@ -247,11 +247,25 @@ define apache::vhost::php::joomla( require => Git::Clone["git_clone_$name"], } - $writable_files = [ - "$documentroot/components" + $writable_dirs = [ + "$documentroot/administrator/backups" + ,"$documentroot/administrator/components" + ,"$documentroot/administrator/language" + ,"$documentroot/administrator/modules" + ,"$documentroot/administrator/templates" + ,"$documentroot/components" ,"$documentroot/dmdocuments" ,"$documentroot/images" - ,"$documentroot/language"] + ,"$documentroot/language" + ,"$documentroot/media" + ,"$documentroot/modules" + ,"$documentroot/plugins" + ,"$documentroot/templates" + ,"$documentroot/cache" + ,"$documentroot/administrator/cache" + ] + + apache::file::rw{$writable_dirs:} # file{$writable_files: # ensure => directory |