Fixed selinux contexts from apache datadir.
This commit is contained in:
parent
5475229cfd
commit
f72ec5b350
1 changed files with 9 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue