diff --git a/apache/manifests/init.pp b/apache/manifests/init.pp index 44d60a6..f1fd670 100644 --- a/apache/manifests/init.pp +++ b/apache/manifests/init.pp @@ -35,6 +35,15 @@ class apache::common { require => File["/srv/www"], } + if "${selinux}" == "true" { + if $apache_datadir { + selinux::manage_fcontext { "${apache_datadir}(/.*)?": + type => "httpd_sys_content_t", + before => File["${apache_datadir}"], + } + } + } + package { "httpd": name => $operatingsystem ? { debian => "apache2",