0
0
mirror of https://github.com/saltstack-formulas/cron-formula.git synced 2025-02-26 11:18:14 +01:00
cron-formula/cron/map.jinja

25 lines
474 B
Plaintext
Raw Normal View History

2017-07-28 01:43:45 +02:00
# -*- coding: utf-8 -*-
# vim: ft=jinja
{% set os_family_map = salt['grains.filter_by']({
'RedHat': {
'pkg': 'cronie',
'service': 'crond',
},
'Suse': {
'pkg': 'cronie',
'service': 'cron',
},
'Debian': {
'pkg': 'cron',
'service': 'cron',
},
2017-07-28 01:43:45 +02:00
}, grain='os_family', merge=salt['pillar.get']('cron:lookup')) %}
{% set cron_settings = salt['pillar.get'](
'cron',
default=os_family_map,
merge=True
)
2017-07-28 01:43:45 +02:00
%}