diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-10-03 11:28:44 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-10-03 14:56:29 -0400 |
commit | e297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee (patch) | |
tree | cce02487ed8d94a93b7c141e0579e32feb026543 /roles/openshift_loadbalancer/templates | |
parent | b0ddb188ef1dc8484f4d9e1f7ae58dcd4ac6a299 (diff) | |
download | openshift-e297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee.tar.gz openshift-e297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee.tar.bz2 openshift-e297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee.tar.xz openshift-e297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee.zip |
Filterize haproxy frontends/backends and add method for providing additional frontends/backends.
Diffstat (limited to 'roles/openshift_loadbalancer/templates')
-rw-r--r-- | roles/openshift_loadbalancer/templates/haproxy.cfg.j2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/openshift_loadbalancer/templates/haproxy.cfg.j2 b/roles/openshift_loadbalancer/templates/haproxy.cfg.j2 index b9a279f5f..79e695001 100644 --- a/roles/openshift_loadbalancer/templates/haproxy.cfg.j2 +++ b/roles/openshift_loadbalancer/templates/haproxy.cfg.j2 @@ -3,7 +3,7 @@ global chroot /var/lib/haproxy pidfile /var/run/haproxy.pid - maxconn {{ openshift.loadbalancer.global_maxconn }} + maxconn {{ openshift_loadbalancer_global_maxconn | default(20000) }} user haproxy group haproxy daemon @@ -32,14 +32,14 @@ defaults timeout server 300s timeout http-keep-alive 10s timeout check 10s - maxconn {{ openshift.loadbalancer.default_maxconn }} + maxconn {{ openshift_loadbalancer_default_maxconn | default(20000) }} listen stats :9000 mode http stats enable stats uri / -{% for frontend in openshift.loadbalancer.frontends %} +{% for frontend in openshift_loadbalancer_frontends %} frontend {{ frontend.name }} {% for bind in frontend.binds %} bind {{ bind }} @@ -60,7 +60,7 @@ frontend {{ frontend.name }} {% endif %} {% endfor %} -{% for backend in openshift.loadbalancer.backends %} +{% for backend in openshift_loadbalancer_backends %} backend {{ backend.name }} balance {{ backend.balance }} {% if 'mode' in backend %} |