Skip to content

Commit

Permalink
Merge pull request #74 from tgeywitz-transporeon/add_no_option
Browse files Browse the repository at this point in the history
add no option for listen,backend and frontend conf
  • Loading branch information
goldyfruit authored Jul 26, 2023
2 parents 85235ba + b641662 commit 2a17a45
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 @@ -39,6 +39,11 @@ backend {{ name }}
option {{ opt }}
{% endfor %}
{% endif %}
{% if value.no_options is defined %}
{% for no_opt in value.no_options %}
no option {{ no_opt }}
{% endfor %}
{% endif %}
{% if value.time_outs is defined %}
{% for timeout in value.time_outs %}
timeout {{ timeout }}
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 @@ -34,6 +34,11 @@ frontend {{ name }}
option {{ opt }}
{% endfor %}
{% endif %}
{% if value.no_options is defined %}
{% for no_opt in value.no_options %}
no option {{ no_opt }}
{% endfor %}
{% endif %}
{% if value.acls is defined %}
{% for acl in value.acls %}
acl {{ acl }}
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 @@ -46,6 +46,11 @@ listen {{ name }}
option {{ opt }}
{% endfor %}
{% endif %}
{% if value.no_options is defined %}
{% for no_opt in value.no_options %}
no option {{ no_opt }}
{% endfor %}
{% endif %}
{% if value.timeouts is defined %}
{% for timeout in value.timeouts %}
timeout {{ timeout }}
Expand Down

0 comments on commit 2a17a45

Please sign in to comment.