6910847bce
The rsyslog_client_log_files role variable was masked by the rsyslog_client_log_files fact set during the post install task. This caused the log files set in the rsyslog_client_log_files variable to be ignored on the second or later invocation of the rsyslog_client role. Instead the log files discovered from rsyslog_client_dir on previous runs of the role were add to the list of logfiles. This resulted in missing rsyslog configurations and duplicate logrotate entries. Change-Id: I00a58def426a4f30f1e64a24320ee68157b95f24
18 lines
320 B
Django/Jinja
18 lines
320 B
Django/Jinja
{% for log_file in rsyslog_client_all_log_files %}
|
|
{{ log_file }}
|
|
{% endfor %}
|
|
{
|
|
copytruncate
|
|
weekly
|
|
missingok
|
|
rotate 14
|
|
compress
|
|
dateext
|
|
maxage 60
|
|
notifempty
|
|
nocreate
|
|
postrotate
|
|
restart rsyslog 2>&1 || true
|
|
endscript
|
|
}
|