1 # -*- coding: utf-8 -*-
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {#- Start imports as #}
7 {%- import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
8 {%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
10 {#- Retrieve the config dict only once #}
11 {%- set _config = salt['config.get'](tplroot, default={}) %}
13 {%- set defaults = salt['grains.filter_by'](
16 merge=salt['grains.filter_by'](
19 merge=salt['grains.filter_by'](
27 {%- set config = salt['grains.filter_by'](
28 {'defaults': defaults},
34 {%- set arvados = config %}