1
0
Fork 0
mirror of synced 2024-11-04 08:38:57 -05:00
formula-logrotate/logrotate/config.sls

23 lines
748 B
Text
Raw Normal View History

2015-01-01 13:52:08 -05:00
{% from "logrotate/map.jinja" import logrotate with context %}
include:
- logrotate
logrotate-config:
2015-01-01 13:52:08 -05:00
file.managed:
- name: {{ logrotate.conf_file }}
- source: salt://logrotate/templates/logrotate.conf.tmpl
2015-01-01 13:52:08 -05:00
- template: jinja
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
- mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }}
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
2015-01-01 13:52:08 -05:00