formula-traefik/traefik/config.sls

19 lines
467 B
Text
Raw Normal View History

2018-05-17 22:52:46 -04:00
{%- from slspath + '/map.jinja' import traefik with context -%}
traefik-config:
file.managed:
- name: {{ traefik.config_file }}
- source: salt://{{ slspath }}/files/traefik.toml
- template: jinja
2018-05-18 00:09:40 -04:00
- context:
2018-05-18 00:13:46 -04:00
config: traefik.config
2018-05-17 22:52:46 -04:00
- user: {{ traefik.user}}
- group: {{ traefik.group }}
- mode: 0640
- require:
- user: traefik-user
{%- if traefik.service %}
- watch_in:
- service: traefik
{%- endif %}