Trying to get config to work-1

This commit is contained in:
Eric Renfro 2018-05-17 23:12:41 -04:00
parent 16b614f4a8
commit 2fc78e0f1a
2 changed files with 1 additions and 3 deletions

View file

@ -4,8 +4,6 @@ traefik-config:
file.managed: file.managed:
- name: {{ traefik.config_file }} - name: {{ traefik.config_file }}
- source: salt://{{ slspath }}/files/traefik.toml - source: salt://{{ slspath }}/files/traefik.toml
- context:
config: {{ traefik.config }}
- template: jinja - template: jinja
- user: {{ traefik.user}} - user: {{ traefik.user}}
- group: {{ traefik.group }} - group: {{ traefik.group }}

View file

@ -1,4 +1,4 @@
{% for section in config -%} {% for section in pillar.get('traefik:config') -%}
{% for key, val in section.iteritems() -%} {% for key, val in section.iteritems() -%}
{{ key }} = {{ val }} {{ key }} = {{ val }}
{% endfor -%} {% endfor -%}