Skip to content

Commit

Permalink
fix: post-map.jinja path update
Browse files Browse the repository at this point in the history
  • Loading branch information
vveliev-tc committed Jan 4, 2023
1 parent a5be79d commit ffca1d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TEMPLATE/libs/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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 tplroot ~ "/parameters/post-map.jinja" ignore missing %}
2 changes: 1 addition & 1 deletion docs/map.jinja.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit ffca1d6

Please sign in to comment.