1
0
Fork 0
formula-logrotate/logrotate/map.jinja

23 lines
497 B
Plaintext
Raw Normal View History

2017-02-14 06:10:13 -05:00
# -*- coding: utf-8 -*-
# vim: ft=jinja
{% set os_family_map = salt['grains.filter_by']({
'RedHat': {
'service': 'crond',
},
'Arch': {
'service': 'logrotate.timer',
},
2017-02-08 17:57:08 -05:00
},
2017-02-14 06:10:13 -05:00
grain="os_family",
merge=salt['pillar.get']('logrotate:lookup'))
{% do default_settings.logrotate.update(os_family_map) %}
{% set logrotate = salt['pillar.get'](
'logrotate',
default=default_settings.logrotate,
merge=True
)
%}