diff options
author | Vishal Patil <vishpat@gmail.com> | 2016-10-04 09:50:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-04 09:50:23 -0400 |
commit | 21891653d3b287e6d78082ee03f878de415f16de (patch) | |
tree | cce02487ed8d94a93b7c141e0579e32feb026543 /roles/openshift_loadbalancer/templates | |
parent | b0ddb188ef1dc8484f4d9e1f7ae58dcd4ac6a299 (diff) | |
parent | e297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee (diff) | |
download | openshift-21891653d3b287e6d78082ee03f878de415f16de.tar.gz openshift-21891653d3b287e6d78082ee03f878de415f16de.tar.bz2 openshift-21891653d3b287e6d78082ee03f878de415f16de.tar.xz openshift-21891653d3b287e6d78082ee03f878de415f16de.zip |
Merge pull request #1 from abutcher/nuage_ha
Filterize haproxy front/backends and add method for specifying custom front/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 %} |