1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00

Merge pull request #18 from edwin--zhao/morefile

Support multiple log path
This commit is contained in:
Niels Abspoel 2016-01-26 15:01:31 +01:00
commit a09d8f8a6c
2 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@ logrotate_{{key}}:
- service: {{ logrotate.service }} - service: {{ logrotate.service }}
- context: - context:
{% if value is mapping %} {% if value is mapping %}
path: {{ value.get('path', key) }} path: {{ value.get('path', []) }}
data: {{ value.get('config', []) }} data: {{ value.get('config', []) }}
{% else %} {% else %}
path: {{ key }} path: {{ key }}

View file

@ -1,5 +1,8 @@
# vim: sw=2 sts=2 ts=2 sw et # vim: sw=2 sts=2 ts=2 sw et
{{ path }} { {% for onepath in path %}
{{ onepath }}
{%- endfor %}
{
{% for item in data %} {% for item in data %}
{{ item }} {{ item }}
{%- endfor %} {%- endfor %}