Fixed SELinux contexts from Apache log directories.

This commit is contained in:
Timo Mkinen 2012-08-28 08:50:56 +03:00
parent 458854708c
commit c69fb5afb0
2 changed files with 26 additions and 7 deletions

View file

@ -21,6 +21,10 @@ class apache::redhat::server {
source => "puppet:///modules/custom/empty",
}
File["/srv/www/log/http", "/srv/www/log/http/${homename}"] {
seltype => "httpd_log_t",
}
file { "/etc/httpd/conf/httpd.conf":
ensure => present,
content => template("apache/httpd.conf.erb"),
@ -140,6 +144,10 @@ class apache::redhat::sslserver {
source => "puppet:///modules/custom/empty",
}
File["/srv/www/log/https", "/srv/www/log/https/${homename}"] {
seltype => "httpd_log_t",
}
file { "/etc/httpd/conf/httpsd.conf":
ensure => present,
mode => "0644",
@ -228,11 +236,12 @@ define apache::redhat::sslsite($ipaddr, $root, $ssl_cert, $ssl_key, $ssl_chain)
}
file { "/srv/www/log/https/${site_fqdn}":
ensure => directory,
mode => "0755",
owner => root,
group => root,
before => Service["httpsd"],
ensure => directory,
mode => "0755",
owner => "root",
group => "root",
seltype => "httpd_log_t",
before => Service["httpsd"],
}
}