diff options
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp index 6bb9ed8..0c3ee45 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -28,6 +28,16 @@ class apache::centos inherits apache::package { path => '/var/www/html/index.html', } + if $::selinux != 'false' { + selinux::fcontext{ + ['/var/www/vhosts/.+/www(/.*)?', + '/var/www/vhosts/.+/non_public(/.*)?', + '/var/www/vhosts/.+/g2data(/.*)?', + '/var/www/vhosts/.+/upload(/.*)?' ]: + setype => 'httpd_sys_rw_content_t', + before => File[web_dir]; + } + } file{'apache_service_config': path => '/etc/sysconfig/httpd', source => [ "puppet:///modules/site-apache/service/CentOS/${fqdn}/httpd", |