1
0
Fork 0
mirror of synced 2024-11-10 11:18:58 -05:00
formula-logrotate/logrotate/init.sls

21 lines
539 B
Text
Raw Normal View History

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
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