Merge "Add logrotate compress option"
This commit is contained in:
commit
02f0f479b5
@ -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,
|
||||
) {
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
other:
|
||||
- |
|
||||
Add the compress option for the containerized logrotate service to
|
||||
compress rotated logs by default.
|
@ -5,6 +5,9 @@
|
||||
notifempty
|
||||
<%- if @delaycompress %>
|
||||
delaycompress
|
||||
<%- end %>
|
||||
<%- if @compress %>
|
||||
compress
|
||||
<%- end %>
|
||||
postrotate
|
||||
/sbin/lsof -nPs +L1 +D /var/log 2>&1|\
|
||||
|
Loading…
Reference in New Issue
Block a user