Fixing config parser
This commit is contained in:
parent
5c7a9c5c09
commit
2c1d45fdb5
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/traefik
|
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
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
User={{ user }}
|
User={{ user }}
|
||||||
Group={{ group }}
|
Group={{ group }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% set config = pillar.get('traefik.config', {}) -%}
|
{% set config = pillar.get('traefik.config', {}) -%}
|
||||||
{% for section in config.items() -%}
|
{% for section in config.iteritems() -%}
|
||||||
[{{ section }}]
|
[{{ section }}]
|
||||||
{% for key, val in section.iteritems() -%}
|
{% for key, val in section.iteritems() -%}
|
||||||
{{ key }} = {{ val }}
|
{{ key }} = {{ val }}
|
||||||
|
|
Loading…
Reference in a new issue