From 2ca43da3cdea01c8a7e992748f22f244a53509a9 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Thu, 17 May 2018 23:51:22 -0400 Subject: [PATCH] Trying to fix config parser --- traefik/files/traefik.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/traefik/files/traefik.toml b/traefik/files/traefik.toml index e230faa..dddd172 100644 --- a/traefik/files/traefik.toml +++ b/traefik/files/traefik.toml @@ -1,4 +1,7 @@ -{% set config = pillar.get('traefik.config', {}) -%} +{%- from "traefik/map.jinja" import traefik with context -%} + +{%- set config = salt['pillar.get']('traefik:config', {}) -%} + {% for section in config.iteritems() -%} [{{ section }}] {% for key, val in section.iteritems() -%}