Skip to content

Commit

Permalink
Merge pull request #76 from tgeywitz-transporeon/add_errorfiles
Browse files Browse the repository at this point in the history
add errorfiles for listen,backend and frontend
  • Loading branch information
goldyfruit authored Jul 27, 2023
2 parents 9f51400 + bb8e936 commit 7a8e75c
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 7a8e75c

Please sign in to comment.