fix: post-map.jinja path from formula parameters dir

This commit is contained in:
vveliev 2023-01-04 17:57:36 -05:00
parent a5be79d9f6
commit d2c9228422
2 changed files with 2 additions and 2 deletions

View file

@ -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 %}

View file

@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~