-
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): allow jinja processing of parameters values
We allow the load of `.jinja` files to circumvent yamllint errors when using Jinja in YAML files. We load: - `defaults.yaml.jinja` after `defaults.yaml` - `post_map.yaml.jinja` at the end
- Loading branch information
Showing
4 changed files
with
30 additions
and
10 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') }} | ||
... |