Merged in oherrala/puppet (pull request #46)

apache: Log rotation requires lsof.
This commit is contained in:
Timo Mäkinen 2014-02-17 23:39:36 +02:00
commit 1ee9bf0105
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":

10
lsof/manifests/init.pp Normal file
View file

@ -0,0 +1,10 @@
# Install lsof
#
class lsof {
package { "lsof":
ensure => installed,
}
}