Skip to content

Commit

Permalink
add errorfiles for listen,backend and frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeywitz-transporeon committed Jul 27, 2023
1 parent 0e06ee0 commit bb8e936
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/etc/haproxy/haproxy-backend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ backend {{ name }}
server {{ srv }}
{% endfor %}
{% endif %}
{% if value.errorfiles is defined %}
{% for errorfile in value.errorfiles %}
errorfile {{ errorfile }}
{% endfor %}
{% endif %}
{% endfor %}

{% endfor %}
Expand Down
5 changes: 5 additions & 0 deletions templates/etc/haproxy/haproxy-frontend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ frontend {{ name }}
{% if value.unique_id_format is defined %}
unique-id-format {{ value.unique_id_format }}
{% endif %}
{% if value.errorfiles is defined %}
{% for errorfile in value.errorfiles %}
errorfile {{ errorfile }}
{% endfor %}
{% endif %}
{% endfor %}

{% endfor %}
Expand Down
5 changes: 5 additions & 0 deletions templates/etc/haproxy/haproxy-listen.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ listen {{ name }}
{% if value.unique_id_format is defined %}
unique-id-format {{ value.unique_id_format }}
{% endif %}
{% if value.errorfiles is defined %}
{% for errorfile in value.errorfiles %}
errorfile {{ errorfile }}
{% endfor %}
{% endif %}
{% endfor %}

{% endfor %}
Expand Down

0 comments on commit bb8e936

Please sign in to comment.