diff --git a/apache/manifests/init.pp b/apache/manifests/init.pp index 7a6ec23..d525281 100644 --- a/apache/manifests/init.pp +++ b/apache/manifests/init.pp @@ -81,9 +81,16 @@ class apache::common { group => "root", seltype => "httpd_rotatelogs_exec_t", } - selinux::manage_fcontext { "/usr/local/sbin/www-logrotate.sh": - type => "httpd_rotatelogs_exec_t", - before => File["/usr/local/sbin/www-logrotate.sh"], + if $::operatingsystem == "Fedora" and $::operatingsystemrelease > 17 { + selinux::manage_fcontext { "/usr/sbin/www-logrotate.sh": + type => "httpd_rotatelogs_exec_t", + before => File["/usr/local/sbin/www-logrotate.sh"], + } + } else { + selinux::manage_fcontext { "/usr/local/sbin/www-logrotate.sh": + type => "httpd_rotatelogs_exec_t", + before => File["/usr/local/sbin/www-logrotate.sh"], + } } cron { "www-logrotate":