apache: Log rotation requires lsof.

This commit is contained in:
Ossi Herrala 2014-02-17 12:02:16 +00:00
parent d9851631bb
commit 7d9dce035f
2 changed files with 13 additions and 0 deletions

View file

@ -5,6 +5,8 @@ import "redhat.pp"
#
class apache::common {
include lsof
case $::operatingsystem {
debian,ubuntu: {
if ! $httpd_user {
@ -80,6 +82,7 @@ class apache::common {
owner => "root",
group => "root",
seltype => "httpd_rotatelogs_exec_t",
require => Package["lsof"],
}
if $::operatingsystem == "Fedora" and $::operatingsystemrelease > 17 {
selinux::manage_fcontext { "/usr/sbin/www-logrotate.sh":