From f261bb998075748163af0fe70e540b307b7af0b7 Mon Sep 17 00:00:00 2001 From: Lucianovici Date: Mon, 17 May 2021 12:47:59 +0300 Subject: [PATCH] Import YAML with context --- docker/map.jinja | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/map.jinja b/docker/map.jinja index 037d03cd..1b9fbb19 100644 --- a/docker/map.jinja +++ b/docker/map.jinja @@ -2,13 +2,13 @@ # 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 ~ "/osfingermap.yaml" as osfingermap %} -{%- import_yaml tplroot ~ "/osmap.yaml" as osmap %} -{%- import_yaml tplroot ~ "/codenamemap.yaml" as codenamemap %} -{%- import_yaml tplroot ~ "/osarchmap.yaml" as osarchmap %} -{%- import_yaml tplroot ~ "/cpuarchmap.yaml" as cpuarchmap %} +{%- import_yaml tplroot ~ "/defaults.yaml" as default_settings with context %} +{%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap with context %} +{%- import_yaml tplroot ~ "/osfingermap.yaml" as osfingermap with context %} +{%- import_yaml tplroot ~ "/osmap.yaml" as osmap with context %} +{%- import_yaml tplroot ~ "/codenamemap.yaml" as codenamemap with context %} +{%- import_yaml tplroot ~ "/osarchmap.yaml" as osarchmap with context %} +{%- import_yaml tplroot ~ "/cpuarchmap.yaml" as cpuarchmap with context %} {%- set _config = salt['config.get'](tplroot, default={}) %} {%- set defaults = salt['grains.filter_by'](