7097c48b11
Parameters "minsize" and "notifempty" of /etc/logrotate-crond.conf
in the container logrotate_crond should be changeable even if this
doesn't comply with GDPR. This is because there might be users who
don't want to comply with it for some reason such as their internal
rule, testing purpose, etc.
This patch adds the following Puppet hieradata.
tripleo::profile::base::logging::logrotate::minsize (default: 1)
tripleo::profile::base::logging::logrotate::notifempty (default: True)
Change-Id: I623c711921cf7fe52f15cc1ba4a1dafb3c9479b7
Closes-Bug: #1884415
(cherry picked from commit f6f878d4b3
)
34 lines
810 B
Plaintext
34 lines
810 B
Plaintext
/var/log/containers/*/*log /var/log/containers/*/*/*log /var/log/containers/*/*err {
|
|
<%= @rotation %>
|
|
rotate <%= @rotate %>
|
|
maxage <%= @purge_after_days %>
|
|
# minsize 1 is required for GDPR compliance, all files in
|
|
# /var/log/containers not managed with logrotate will be purged!
|
|
minsize <%= @minsize %>
|
|
# Do not use size as it's not compatible with time-based rotation rules
|
|
# required for GDPR compliance.
|
|
maxsize <%= @maxsize %>
|
|
missingok
|
|
<%- if @notifempty %>
|
|
notifempty
|
|
<%- end %>
|
|
<%- if @copytruncate %>
|
|
copytruncate
|
|
<%- end %>
|
|
<%- if @delaycompress %>
|
|
delaycompress
|
|
<%- end %>
|
|
<%- if @compress %>
|
|
compress
|
|
<%- end %>
|
|
<%- if @dateext %>
|
|
dateext
|
|
<%- if @dateformat %>
|
|
dateformat <%= @dateformat %>
|
|
<%- end %>
|
|
<%- if @dateyesterday %>
|
|
dateyesterday
|
|
<%- end %>
|
|
<%- end %>
|
|
}
|