Fixing config parser

This commit is contained in:
Eric Renfro 2018-05-17 23:40:37 -04:00
parent 5c7a9c5c09
commit 2c1d45fdb5
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ After=network.target
[Service]
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/traefik
ExecStart=/usr/local/bin/traefik -cfg {{ config_file }}
ExecStart=/usr/local/bin/traefik --configfile="{{ config_file }}"
ExecReload=/bin/kill -HUP $MAINPID
User={{ user }}
Group={{ group }}

View file

@ -1,5 +1,5 @@
{% set config = pillar.get('traefik.config', {}) -%}
{% for section in config.items() -%}
{% for section in config.iteritems() -%}
[{{ section }}]
{% for key, val in section.iteritems() -%}
{{ key }} = {{ val }}