Skip to content

Commit 78d796e

Browse files
authored
Merge pull request #1724 from iddecker/haproxy-cookie
ncm-metaconfig: haproxy - add cookie config option
2 parents a2d2589 + dce2afb commit 78d796e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ncm-metaconfig/src/main/metaconfig/haproxy/backend.tt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ balance [% bke.balance %]
44
[% IF bke.mode -%]
55
mode [% bke.mode %]
66
[% END -%]
7+
[% IF bke.cookie -%]
8+
cookie [% bke.cookie %]
9+
[% END -%]
710
[% FOREACH option IN bke.options -%]
811
option [% option %]
912
[% END -%]

ncm-metaconfig/src/main/metaconfig/haproxy/pan/schema.pan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ type haproxy_service_server_params = {
198198
'check' ? boolean
199199
@{different health check port}
200200
'port' ? type_port
201+
'cookie' ? string_trimmed
201202
};
202203

203204
type haproxy_service_bind_params = {
@@ -252,6 +253,7 @@ type haproxy_service_backend = {
252253
'reqrep' ? haproxy_service_reqrep[]
253254
'http-request' ? string[]
254255
'acl' ? dict()
256+
'cookie' ? string_trimmed
255257
};
256258

257259
@documentation {

0 commit comments

Comments
 (0)