kevin fb165ca562 Fix for duplicate logs on an AIO
This changes the array for `rsyslog_client_log_files` which was 
being set as a host fact and creating an ever increasing list of
logs as services are added to a host.

Change-Id: If00d2a31d681819f0ad31ffff3c4a34b2b62d923
Closes-Bug: 1457224
2015-05-26 20:27:51 +00:00

18 lines
374 B
Django/Jinja

{% if log_files is defined %}
{% set rsyslog_client_log_files = log_files.stdout_lines | union(rsyslog_client_log_files) %}
{% endif %}
{% for log_file in rsyslog_client_log_files %}
{{ log_file }}
{% endfor %}
{
copytruncate
weekly
missingok
rotate 14
compress
dateext
maxage 60
notifempty
nocreate
}