# -*- 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 ) %}