2015-05-26 16:41:04 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=jinja
|
2015-03-17 05:39:32 +01:00
|
|
|
|
2019-10-09 19:32:11 +02:00
|
|
|
{#- 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 %}
|
2021-05-25 21:06:01 +02:00
|
|
|
{% import_yaml "salt/osfingermap.yaml" as osfingermap %}
|
2016-09-05 10:48:31 +02:00
|
|
|
|
2019-01-25 21:35:16 +01:00
|
|
|
{# merge the osfamilymap #}
|
2021-05-25 21:06:01 +02:00
|
|
|
{% set osfamily_map = salt['grains.filter_by'](osfamilymap, grain='os_family') or {} %}
|
|
|
|
{% do salt['defaults.merge'](defaults['salt'], osfamily_map) %}
|
2015-03-17 05:39:32 +01:00
|
|
|
|
2019-01-25 21:35:16 +01:00
|
|
|
{# merge the osmap #}
|
2021-05-25 21:06:01 +02:00
|
|
|
{% set os_map = salt['grains.filter_by'](osmap, grain='os') or {} %}
|
|
|
|
{% do salt['defaults.merge'](defaults['salt'], os_map) %}
|
|
|
|
|
|
|
|
{# merge the osfingermap #}
|
|
|
|
{% set osfinger_map = salt['grains.filter_by'](osfingermap, grain='osfinger') or {} %}
|
|
|
|
{% do salt['defaults.merge'](defaults['salt'], osfinger_map) %}
|
2015-08-20 06:46:49 +02:00
|
|
|
|
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) %}
|
|
|
|
|
2019-10-09 19:32:11 +02:00
|
|
|
{#- Merge in salt pillar #}
|
2019-01-25 21:35:16 +01:00
|
|
|
{% set salt_settings = salt['pillar.get']('salt', default=defaults['salt'], merge=True) %}
|
2018-06-10 11:18:20 +02:00
|
|
|
|
2019-10-09 19:32:11 +02:00
|
|
|
{#- 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) %}
|