diff options
author | mh <mh@immerda.ch> | 2012-02-12 15:43:28 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-02-12 15:43:28 +0100 |
commit | 8d61ad7c8a76adf378a319245d655cf0fce18d25 (patch) | |
tree | d54fbf9bbdb80573d2086ed19a965c493b6d7ee3 /manifests/centos.pp | |
parent | 89495dae91ac87b7dad314d6e1c3737913865e2b (diff) |
manage selinux stuff
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", |