Skip to content

Commit

Permalink
confd: template: haproxy: drop superfoulous endif (vitabaks#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimnydev committed Jan 10, 2024
1 parent e3ebd5f commit 0e22a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/confd/templates/haproxy.tmpl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ listen replicas_async
{{end}}{% endraw %}
{% endif %}


{% if with_haproxy_direct_connections|bool and pgbouncer_install|bool %}
listen master_direct
{% if cluster_vip is defined and cluster_vip | length > 0 %}
Expand All @@ -125,7 +126,6 @@ listen master_direct
default-server inter 3s fastinter 1s fall 3 rise 4 on-marked-down shutdown-sessions
{% raw %}{{range gets "/members/*"}} server {{base .Key}} {{$data := json .Value}}{{base (replace (index (split $data.conn_url "/") 2) "@" "/" -1)}} check port {{index (split (index (split $data.api_url "/") 2) ":") 1}}
{{end}}{% endraw %}
{% endif %}


listen replicas_direct
Expand Down

0 comments on commit 0e22a96

Please sign in to comment.