2
0
salt-formula/salt/map.jinja

26 lines
963 B
Plaintext
Raw Normal View History

# -*- coding: utf-8 -*-
# vim: ft=jinja
{#- Start imports #}
2019-01-25 21:35:16 +01:00
{% import_yaml "salt/defaults.yaml" as defaults %}
{% import_yaml "salt/osfamilymap.yaml" as osfamilymap %}
{% import_yaml "salt/osmap.yaml" as osmap %}
2019-01-25 21:35:16 +01:00
{# merge the osfamilymap #}
{% set osfamily = salt['grains.filter_by'](osfamilymap, grain='os_family') or{} %}
2019-01-26 11:10:44 +01:00
{% do salt['defaults.merge'](defaults['salt'], osfamily) %}
2019-01-25 21:35:16 +01:00
{# merge the osmap #}
{% set osmap = salt['grains.filter_by'](osmap, grain='os') or{} %}
2019-01-26 11:10:44 +01:00
{% do salt['defaults.merge'](defaults['salt'], osmap) %}
2019-01-29 02:56:49 +01:00
{# merge the lookup #}
{% set lookup = salt['pillar.get']('salt:lookup', default={}, merge=True) %}
{% do salt['defaults.merge'](defaults['salt'], lookup) %}
{#- Merge in salt pillar #}
2019-01-25 21:35:16 +01:00
{% set salt_settings = salt['pillar.get']('salt', default=defaults['salt'], merge=True) %}
{#- Merge in salt_formulas pillar #}
2019-01-25 21:35:16 +01:00
{% set formulas_settings = salt['pillar.get']('salt_formulas',default=defaults['salt_formulas'], merge=True) %}