diff --git a/traefik/config.sls b/traefik/config.sls index 9ce898f..337b069 100644 --- a/traefik/config.sls +++ b/traefik/config.sls @@ -4,8 +4,6 @@ traefik-config: file.managed: - name: {{ traefik.config_file }} - source: salt://{{ slspath }}/files/traefik.toml - - context: - config: {{ traefik.config }} - template: jinja - user: {{ traefik.user}} - group: {{ traefik.group }} diff --git a/traefik/files/traefik.toml b/traefik/files/traefik.toml index 59ccad9..a6f759e 100644 --- a/traefik/files/traefik.toml +++ b/traefik/files/traefik.toml @@ -1,4 +1,4 @@ -{% for section in config -%} +{% for section in pillar.get('traefik:config') -%} {% for key, val in section.iteritems() -%} {{ key }} = {{ val }} {% endfor -%}