add stick option for keystone federation
diff --git a/README.rst b/README.rst
index ac05317..f52c0d8 100644
--- a/README.rst
+++ b/README.rst
@@ -225,6 +225,9 @@
- httpchk
- httpclose
- httplog
+ sticks:
+ - stick on src
+ - stick-table type ip size 200k expire 2m
acl:
is_docker: "path_reg ^/v[12][/.]*"
http_request:
diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg
index ab865d9..4266f73 100644
--- a/haproxy/files/haproxy.cfg
+++ b/haproxy/files/haproxy.cfg
@@ -157,6 +157,9 @@
{%- for option in listen.get('options', []) %}
option {{ option }}
{%- endfor %}
+ {%- for stick in listen.get('sticks', []) %}
+ {{ stick }}
+ {%- endfor %}
{%- for reqadd in listen.get('reqadd', []) %}
reqadd {{ reqadd }}
{%- endfor %}