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 }}
|
- name: {{ traefik.config_file }}
|
||||||
- source: salt://{{ slspath }}/files/traefik.toml
|
- source: salt://{{ slspath }}/files/traefik.toml
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
- context:
|
||||||
|
config: {{ trafik.config }}
|
||||||
- user: {{ traefik.user}}
|
- user: {{ traefik.user}}
|
||||||
- group: {{ traefik.group }}
|
- group: {{ traefik.group }}
|
||||||
- mode: 0640
|
- 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() -%}
|
{% for section in config.values() -%}
|
||||||
[{{ section }}]
|
[{{ section }}]
|
||||||
{% for key, val in section.iteritems() -%}
|
{% for key, val in section.iteritems() -%}
|
||||||
|
|
Loading…
Reference in a new issue