1 # -*- coding: utf-8 -*-
3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: Apache-2.0
7 {#- Get the `tplroot` from `tpldir` #}
8 {%- set tplroot = tpldir.split('/')[0] %}
9 {#- Start imports as #}
10 {%- import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
11 {%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
12 {%- import_yaml tplroot ~ "/osfingermap.yaml" as osfingermap %}
14 {#- Retrieve the config dict only once #}
15 {%- set _config = salt['config.get'](tplroot, default={}) %}
17 {%- set defaults = salt['grains.filter_by'](
20 merge=salt['grains.filter_by'](
23 merge=salt['grains.filter_by'](
26 merge=salt['grains.filter_by'](
35 {%- set config = salt['grains.filter_by'](
36 {'defaults': defaults},
42 {%- set arvados = config %}