Skip to content

Commit

Permalink
Import YAML with context (#56)
Browse files Browse the repository at this point in the history
* fix(yaml): Import YAML with context

* fix(sls): Add missing endif
  • Loading branch information
Lucianovici authored Aug 12, 2021
1 parent 79081c9 commit 7e56f69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions node/config/clean.sls
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ node-config-clean-file-absent:
- {{ node.environ_file }}
- require:
- sls: {{ sls_package_clean }}
{%- endif %}
8 changes: 4 additions & 4 deletions node/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# vim: ft=jinja

{%- set tplroot = tpldir.split('/')[0] %}
{%- import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
{%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
{%- import_yaml tplroot ~ "/osmap.yaml" as osmap %}
{%- import_yaml tplroot ~ "/osarchmap.yaml" as osarchmap %}
{%- import_yaml tplroot ~ "/defaults.yaml" as default_settings with context %}
{%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap with context %}
{%- import_yaml tplroot ~ "/osmap.yaml" as osmap with context %}
{%- import_yaml tplroot ~ "/osarchmap.yaml" as osarchmap with context %}

{%- set _config = salt['config.get'](tplroot, default={}) %}
{%- set defaults = salt['grains.filter_by'](
Expand Down

0 comments on commit 7e56f69

Please sign in to comment.