Trying to fix config parser
This commit is contained in:
parent
3d0225712a
commit
2e4ee450e6
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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() -%}
|
||||
|
|
Loading…
Reference in a new issue