mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
refactor(libmatchers): match default type with docs
This commit is contained in:
parent
65cf22c436
commit
8f847bebfd
1 changed files with 4 additions and 4 deletions
|
@ -12,11 +12,11 @@
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
{#- When no part before `@` is provided: #}
|
{#- When no part before `@` is provided: #}
|
||||||
{#- - define a filename path, noted `F` #}
|
{#- - define a YAML file path, noted `Y` #}
|
||||||
{#- - use `salt["config.get"]`, noted `C` #}
|
{#- - use `salt["config.get"]`, noted `C` #}
|
||||||
{#- - use colon `:` delimiter for querying #}
|
{#- - use colon `:` delimiter for querying #}
|
||||||
{%- set _defaults = {
|
{%- set _defaults = {
|
||||||
"type": "F",
|
"type": "Y",
|
||||||
"query_type": "C",
|
"query_type": "C",
|
||||||
"query_delimiter": ":"
|
"query_delimiter": ":"
|
||||||
} %}
|
} %}
|
||||||
|
@ -28,11 +28,11 @@
|
||||||
) %}
|
) %}
|
||||||
{#- matcher format is `[<TYPE>[:<OPTION>[:DELIMITER]]@]<KEY>` #}
|
{#- matcher format is `[<TYPE>[:<OPTION>[:DELIMITER]]@]<KEY>` #}
|
||||||
{#- each matcher has a type: #}
|
{#- each matcher has a type: #}
|
||||||
{#- - `F` to build a file name (the default when no type is set) #}
|
{#- - `Y` to build a YAML file name (the default when no type is set) #}
|
||||||
{#- - `C` to lookup values with `config.get` #}
|
{#- - `C` to lookup values with `config.get` #}
|
||||||
{#- - `G` to lookup values with `grains.get` #}
|
{#- - `G` to lookup values with `grains.get` #}
|
||||||
{#- - `I` to lookup values with `pillar.get` #}
|
{#- - `I` to lookup values with `pillar.get` #}
|
||||||
{#- The `FILE` type option can define query type to build the file name: #}
|
{#- The `YAML` type option can define query type to build the file name: #}
|
||||||
{#- - `C` for query with `config.get` (the default when to query type is set) #}
|
{#- - `C` for query with `config.get` (the default when to query type is set) #}
|
||||||
{#- - `G` for query with `grains.get` #}
|
{#- - `G` for query with `grains.get` #}
|
||||||
{#- - `I` for query with `pillar.get` #}
|
{#- - `I` for query with `pillar.get` #}
|
||||||
|
|
Loading…
Add table
Reference in a new issue