mirror of
https://github.com/saltstack-formulas/cron-formula.git
synced 2024-11-28 03:27:50 +01:00
25 lines
476 B
Django/Jinja
25 lines
476 B
Django/Jinja
# -*- 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',
|
|
},
|
|
}, grain='os_family', merge=salt['pillar.get']('cron:lookup')) %}
|
|
|
|
{%- set cron_settings = salt['pillar.get'](
|
|
'cron',
|
|
default=os_family_map,
|
|
merge=True
|
|
)
|
|
%}
|