mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2024-11-28 03:27:50 +01:00
21 lines
459 B
Django/Jinja
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
|
|
)
|
|
%}
|