0
0
mirror of https://github.com/saltstack-formulas/cron-formula.git synced 2024-11-28 03:27:50 +01:00
cron-formula/cron/map.jinja
2017-07-28 01:43:45 +02:00

21 lines
459 B
Django/Jinja

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