summaryrefslogtreecommitdiff
path: root/manifests/centos.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-03-17 01:23:21 +0100
committermh <mh@immerda.ch>2013-03-17 01:23:21 +0100
commit00952a0b9a210c8df93e1b03f0f508c6087a16f9 (patch)
tree680426df145b7b4f9db9cd175531d96830469e88 /manifests/centos.pp
parentf4c092d2f027ce2a3492f1f4bad1c691b8d3d6e9 (diff)
fix selttype on EL6
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r--manifests/centos.pp6
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';