paulbsd-salt/states/logrotate/config.sls

14 lines
374 B
Plaintext
Raw Normal View History

2024-07-06 08:59:01 +02:00
---
{%- from "logrotate/map.jinja" import logrotate with context %}
{%- for filename, cfg in logrotate.config.items() %}
logrotate-config-{{ filename }}:
file.managed:
- name: /etc/logrotate.d/{{ filename }}
- source: salt://logrotate/templates/config.j2
- user: root
- group: root
- template: jinja
- context:
2024-07-06 09:02:39 +02:00
cfg: {{ cfg }}
2024-07-06 08:59:01 +02:00
{%- endfor %}