- mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }} | - mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }} | ||||
- require: | - require: | ||||
- pkg: logrotate | - pkg: logrotate | ||||
- watch_in: | |||||
- service: {{ logrotate.service }} | |||||
service.running: | service.running: | ||||
- name: {{ logrotate.service }} | - name: {{ logrotate.service }} | ||||
- enable: True | - enable: True | ||||
- reload: True | |||||
logrotate_directory: | logrotate_directory: | ||||
file.directory: | file.directory: |
- mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }} | - mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }} | ||||
- require: | - require: | ||||
- pkg: logrotate | - pkg: logrotate | ||||
- watch_in: | |||||
- service: {{ logrotate.service }} | |||||
- context: | - context: | ||||
{% if value is mapping %} | {% if value is mapping %} | ||||
path: {{ value.get('path', []) }} | path: {{ value.get('path', []) }} |