Merge "Add logrotate compress option"

This commit is contained in:
Zuul 2018-05-05 04:08:55 +00:00 committed by Gerrit Code Review
commit 02f0f479b5
3 changed files with 13 additions and 0 deletions

View File

@ -54,6 +54,10 @@
# (optional) Defaults to True.
# Configures the logrotate delaycompress parameter.
#
# [*compress*]
# (optional) Defaults to True.
# Configures the logrotate compress parameter.
#
# [*size*]
# (optional) Defaults to '10M'.
# Configures the logrotate size parameter.
@ -73,6 +77,7 @@ class tripleo::profile::base::logging::logrotate (
Integer $maxdelay = 90,
$user = 'root',
$delaycompress = true,
$compress = true,
$size = '10M',
$rotate = 14,
) {

View File

@ -0,0 +1,5 @@
---
other:
- |
Add the compress option for the containerized logrotate service to
compress rotated logs by default.

View File

@ -5,6 +5,9 @@
notifempty
<%- if @delaycompress %>
delaycompress
<%- end %>
<%- if @compress %>
compress
<%- end %>
postrotate
/sbin/lsof -nPs +L1 +D /var/log 2>&1|\