From 2fc78e0f1ac48d1f46156295a6fd1b0c89ed8225 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Thu, 17 May 2018 23:12:41 -0400 Subject: [PATCH] Trying to get config to work-1 --- traefik/config.sls | 2 -- traefik/files/traefik.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 -%}