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