{#- -*- coding: utf-8 -*- #} {#- vim: ft=jinja #} {#- Get the `tplroot` from `tpldir` #} {%- set tplroot = tpldir.split("/")[0] %} {%- from tplroot ~ "/libsaltcli.jinja" import cli %} {%- set query_map = { "C": "config.get", "G": "grains.get", "I": "pillar.get", } %} {#- When no part before `@` is provided: #} {#- - define a filename path, noted `F` #} {#- - use `salt["config.get"]`, noted `C` #} {#- - use colon `:` delimiter for querying #} {%- set _defaults = { "type": "F", "query_type": "C", "query_delimiter": ":" } %} {%- macro parse_matchers( matchers, config_get_strategy=None, log_prefix="libmatchers: " ) %} {#- matcher format is `[[: