paulbsd-salt/states/logrotate/config.sls
Paul Lecuq 878e57780a
All checks were successful
continuous-integration/drone/push Build is passing
updated logrotate state
2024-07-06 09:02:39 +02:00

14 lines
374 B
Plaintext

---
{%- 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:
cfg: {{ cfg }}
{%- endfor %}