Trying to fix config parser

This commit is contained in:
Eric Renfro 2018-05-18 00:09:40 -04:00
parent 3d0225712a
commit 2e4ee450e6
2 changed files with 2 additions and 4 deletions

View File

@ -5,6 +5,8 @@ traefik-config:
- name: {{ traefik.config_file }}
- source: salt://{{ slspath }}/files/traefik.toml
- template: jinja
- context:
config: {{ trafik.config }}
- user: {{ traefik.user}}
- group: {{ traefik.group }}
- mode: 0640

View File

@ -1,7 +1,3 @@
{%- from "traefik/map.jinja" import traefik with context -%}
{%- set config = salt['pillar.get']('traefik:config', {}) -%}
{% for section in config.values() -%}
[{{ section }}]
{% for key, val in section.iteritems() -%}