# -*- coding: utf-8 -*- # vim: ft=jinja {## Start with defaults from defaults.sls ##} {% import_yaml 'prosody/defaults.yaml' as default_settings %} {## Setup variable using grains['os_family'] based logic, only add key:values here that differ from whats in defaults.yaml ##} {% set os_family_map = salt['grains.filter_by']( { 'Debian' : {}, 'Suse' : {}, 'Arch' : {}, 'RedHat' : {}, 'FreeBSD' : {}, }, grain="os_family", merge=salt['pillar.get']('prosody:lookup') ) %} {## Merge the flavor_map to the default settings ##} {% do default_settings.prosody.update(os_family_map) %} {## Merge in prosody:lookup pillar ##} {% set prosody = salt['pillar.get']( 'prosody', default=default_settings.prosody, merge=True ) %}