2015-01-01 13:52:08 -05:00
|
|
|
{% from "logrotate/map.jinja" import logrotate with context %}
|
|
|
|
|
|
|
|
logrotate:
|
|
|
|
pkg.installed:
|
|
|
|
- name: {{ logrotate.pkg|json }}
|
|
|
|
service.running:
|
|
|
|
- name: {{ logrotate.service }}
|
|
|
|
- enable: True
|
|
|
|
- reload: True
|
2015-03-20 16:05:14 -04:00
|
|
|
|
|
|
|
logrotate_directory:
|
|
|
|
file.directory:
|
|
|
|
- name: {{ logrotate.include_dir }}
|
2015-05-05 09:20:54 -04:00
|
|
|
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
|
|
|
|
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
|
2015-03-20 16:05:14 -04:00
|
|
|
- mode: 755
|
|
|
|
- makedirs: True
|
|
|
|
- require:
|
|
|
|
- pkg: logrotate
|
|
|
|
|