24 lines
713 B
Plaintext
24 lines
713 B
Plaintext
---
|
|
{%- from "haproxy/map.jinja" import haproxy with context %}
|
|
haproxy-config:
|
|
file.managed:
|
|
- name: {{ haproxy.config.dir }}/{{ haproxy.config.configfile }}
|
|
- source: salt://haproxy/templates/haproxy.cfg.j2
|
|
- user: {{ haproxy.config.user }}
|
|
- group: {{ haproxy.config.group }}
|
|
- mode: "0600"
|
|
- template: jinja
|
|
- watch_in:
|
|
- service: haproxy-service
|
|
|
|
haproxy-config-access:
|
|
file.managed:
|
|
- name: {{ haproxy.config.dir }}/{{ haproxy.config.accessfile }}
|
|
- source: salt://haproxy/templates/access.j2
|
|
- user: {{ haproxy.config.user }}
|
|
- group: {{ haproxy.config.group }}
|
|
- mode: "0600"
|
|
- template: jinja
|
|
- watch_in:
|
|
- service: haproxy-service
|