Trying to get config to work-1
This commit is contained in:
parent
16b614f4a8
commit
2fc78e0f1a
2 changed files with 1 additions and 3 deletions
|
@ -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 }}
|
||||||
|
|
|
@ -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 -%}
|
||||||
|
|
Loading…
Reference in a new issue