2022-10-01 20:06:19 +02:00
|
|
|
---
|
|
|
|
{%- from "haproxy/map.jinja" import haproxy with context %}
|
2022-12-11 16:34:27 +01:00
|
|
|
{% for filename in haproxy.maps %}
|
|
|
|
haproxy-maps-{{ filename }}:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ haproxy.config.dir }}/maps/{{ filename }}
|
|
|
|
- source: salt://haproxy/maps/{{ filename }}.j2
|
|
|
|
- user: {{ haproxy.config.user }}
|
|
|
|
- group: {{ haproxy.config.group }}
|
|
|
|
- mode: "0600"
|
|
|
|
- template: jinja
|
|
|
|
- watch_in:
|
|
|
|
- service: haproxy-service
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
haproxy-spoe-config:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ haproxy.config.dir }}/spoe.cfg
|
2022-12-17 23:26:58 +01:00
|
|
|
- source: salt://haproxy/templates/spoe.cfg.j2
|
2022-12-11 16:34:27 +01:00
|
|
|
- user: {{ haproxy.config.user }}
|
|
|
|
- group: {{ haproxy.config.group }}
|
|
|
|
- mode: "0600"
|
|
|
|
- template: jinja
|
|
|
|
- watch_in:
|
|
|
|
- service: haproxy-service
|
|
|
|
|
2022-10-01 20:06:19 +02:00
|
|
|
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
|