paulbsd-salt/states/logrotate/config.sls
Paul Lecuq 3cc7f89544
Some checks failed
continuous-integration/drone/push Build is failing
added logrotate state
2024-07-06 08:59:01 +02:00

14 lines
372 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 %}