f85b78
# Generic logrotate config for Red Hat systems. Works with both official
f85b78
# Fedora and RHEL packages as well as PuppetLabs distributions.
f85b78
f85b78
/var/log/puppetlabs/masterhttp.log /var/log/puppet/masterhttp.log {
f85b78
  compress
f85b78
  missingok
f85b78
  notifempty
f85b78
  nocreate
f85b78
}
f85b78
f85b78
/var/log/puppetlabs/puppetd.log /var/log/puppet/puppetd.log {
f85b78
  compress
f85b78
  missingok
f85b78
  notifempty
f85b78
  nocreate
f85b78
  sharedscripts
f85b78
  postrotate
f85b78
   ([ -x /etc/init.d/puppet ] && /etc/init.d/puppet rotate > /dev/null 2>&1) ||
f85b78
    ([ -x /usr/bin/systemctl ] && /usr/bin/systemctl kill -s USR2 puppet.service > /dev/null 2>&1) || true
f85b78
  endscript
f85b78
}