-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map): YAML files must not use any Jinja
For each `.yaml` file that `map.jinja` try to load, a `.yaml.jinja` Jinja template is tried right after to permit jinja manipulation of values and circumvent yamllint errors when using Jinja in YAML files. At the end of the load of YAML files and Jinja YAML templates, `map.jinja` include an optional `post-map.jinja` for post-processing the `mapdata` variable.
- Loading branch information
Showing
4 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{#- -*- coding: utf-8 -*- #} | ||
{#- vim: ft=jinja #} | ||
{#- | ||
Setup variables after loading `defaults.yaml`. | ||
This jinja2 file must return a valid `map.jinja` YAML which will | ||
be merged into `defaults.yaml`. | ||
If you do not need to provide calculated defaults, you can remove | ||
this file or provide at least an empty dict, e.g. values: {} | ||
#} | ||
--- | ||
values: | ||
multi_services: {{ salt['grains.has_value']('systemd') }} | ||
... |