{#- -*- coding: utf-8 -*- #} {#- vim: ft=jinja #} {#- Get the `tplroot` from `tpldir` #} {%- set tplroot = tpldir.split("/")[0] %} {%- from tplroot ~ "/libmatchers.jinja" import parse_matchers, query_map %} {%- set _default_config_dirs = [ "parameters/", tplroot ~ "/parameters" ] %} {%- macro mapstack( matchers, defaults=None, dirs=_default_config_dirs, log_prefix="libmapstack: " ) %} {#- Load configuration in the order of `matchers` and merge successively the values with `defaults`. The `matchers` are processed using `libmatchers.jinja` to select the configuration sources from where the values are loaded. Parameters: - `matchers`: list of matchers in the form `[[: