mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
fix: post-map.jinja path from formula parameters dir
This commit is contained in:
parent
a5be79d9f6
commit
d2c9228422
2 changed files with 2 additions and 2 deletions
|
@ -63,4 +63,4 @@
|
|||
|
||||
{#- Per formula post-processing of `mapdata` if it exists #}
|
||||
{%- do salt["log.debug"]("map.jinja: post-processing of 'mapdata'") %}
|
||||
{%- include tplroot ~ "/libs/post-map.jinja" ignore missing %}
|
||||
{%- include formula_param_dir ~ "/post-map.jinja" ignore missing %}
|
||||
|
|
|
@ -293,7 +293,7 @@ The ``map.jinja`` file aggregates configuration values from several sources:
|
|||
|
||||
For the values loaded from YAML files, ``map.jinja`` will automatically try to load a Jinja2 template with the same name as the YAML file with the addition of the ``.jinja`` extension, for example ``foo/bar/quux.yaml.jinja``.
|
||||
|
||||
After loading values from all sources, it will try to include the ``salt://{{ tplroot }}/post-map.jinja`` Jinja file if it exists which can post-process the ``mapdata`` variable.
|
||||
After loading values from all sources, it will try to include the ``salt://{{ tplroot }}/parameters/post-map.jinja`` Jinja file if it exists which can post-process the ``mapdata`` variable.
|
||||
|
||||
Configuring ``map.jinja`` sources
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Reference in a new issue