Skip to content

Commit 2789b75

Browse files
committed
Add configuration parameter 'force-persist'
1 parent c4944f0 commit 2789b75

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

templates/backend.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,7 @@
128128
errorfile {{ errorfile.code }} {{ errorfile.file }}
129129
{% endfor -%}
130130
{% endif -%}
131+
132+
{% if item.force_persist is defined -%}
133+
force-persist {{ item.force_persist }}
134+
{% endif -%}

templates/frontend.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,7 @@ frontend {{ item.name }} {%if item.ip is defined %}{{ item.ip }}{% endif %}{%if
128128
use_backend {{ backend.name }} {{ backend.condition }}
129129
{% endfor -%}
130130
{% endif -%}
131+
132+
{% if item.force_persist is defined -%}
133+
force-persist {{ item.force_persist }}
134+
{% endif -%}

templates/listen.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,6 @@ listen {{ item.name }}
110110
stats refresh {{ item.stats.refresh }}
111111
{% endif -%}
112112
{% endif %}
113+
{% if item.force_persist is defined -%}
114+
force-persist {{ item.force_persist }}
115+
{% endif -%}

vars/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ empty: true
128128
# - "^Location:\ 127.0.0.1:8080 Location:\ www.mydomain.com"
129129
# rspirep:
130130
# - "^Location:\ 127.0.0.1:8080 Location:\ www.mydomain.com"
131+
# force_persist:
131132
#
132133
#haproxy_backends:
133134
# - name:
@@ -176,6 +177,7 @@ empty: true
176177
# - "^Location:\ 127.0.0.1:8080 Location:\ www.mydomain.com"
177178
# rspirep:
178179
# - "^Location:\ 127.0.0.1:8080 Location:\ www.mydomain.com"
180+
# force_persist:
179181
#
180182
#haproxy_listen:
181183
# - name:
@@ -230,3 +232,4 @@ empty: true
230232
# realm:
231233
# auth:
232234
# refresh:
235+
# force_persist:

0 commit comments

Comments
 (0)