diff options
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp index 69f11ab..caf46ce 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -32,13 +32,17 @@ class apache::centos inherits apache::package { Selinux::Fcontext{ before => File[web_dir], } + $seltype_rw = $::lsbmajdistrelease ? { + 5 => 'httpd_sys_script_rw_t', + default => 'httpd_sys_rw_content_t' + } selinux::fcontext{ [ '/var/www/vhosts/[^/]*/www(/.*)?', '/var/www/vhosts/[^/]*/non_public(/.*)?', '/var/www/vhosts/[^/]*/g2data(/.*)?', '/var/www/vhosts/[^/]*/upload(/.*)?' ]: require => Package['apache'], - setype => 'httpd_sys_script_rw_t'; + setype => $seltype_rw; '/var/www/vhosts/[^/]*/logs(/.*)?': require => Package['apache'], setype => 'httpd_log_t'; |