1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00
formula-logrotate/logrotate/init.sls
Nicole Scherfenberg e70f0818d8 fixes issue #5
splits config file name and log file path, so you configure both.
This fixes #5.
2015-05-05 15:20:54 +02:00

20 lines
537 B
Text

{% from "logrotate/map.jinja" import logrotate with context %}
logrotate:
pkg.installed:
- name: {{ logrotate.pkg|json }}
service.running:
- name: {{ logrotate.service }}
- enable: True
- reload: True
logrotate_directory:
file.directory:
- name: {{ logrotate.include_dir }}
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
- mode: 755
- makedirs: True
- require:
- pkg: logrotate