summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorVishal Patil <vishpat@gmail.com>2016-10-04 09:50:23 -0400
committerGitHub <noreply@github.com>2016-10-04 09:50:23 -0400
commit21891653d3b287e6d78082ee03f878de415f16de (patch)
treecce02487ed8d94a93b7c141e0579e32feb026543 /playbooks/common
parentb0ddb188ef1dc8484f4d9e1f7ae58dcd4ac6a299 (diff)
parente297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee (diff)
downloadopenshift-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 'playbooks/common')
-rw-r--r--playbooks/common/openshift-loadbalancer/config.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/playbooks/common/openshift-loadbalancer/config.yml b/playbooks/common/openshift-loadbalancer/config.yml
index f4392173a..e3567552e 100644
--- a/playbooks/common/openshift-loadbalancer/config.yml
+++ b/playbooks/common/openshift-loadbalancer/config.yml
@@ -1,5 +1,16 @@
---
- name: Configure load balancers
hosts: oo_lb_to_config
+ vars:
+ openshift_loadbalancer_frontends: "{{ (openshift_master_api_port | default(8843)
+ | oo_openshift_loadbalancer_frontends(hostvars | oo_select_keys(groups['oo_masters']),
+ openshift_use_nuage | default(false),
+ nuage_mon_rest_server_port | default(none)))
+ + openshift_loadbalancer_additional_frontends | default([]) }}"
+ openshift_loadbalancer_backends: "{{ (openshift_master_api_port | default(8843)
+ | oo_openshift_loadbalancer_backends(hostvars | oo_select_keys(groups['oo_masters']),
+ openshift_use_nuage | default(false),
+ nuage_mon_rest_server_port | default(none)))
+ + openshift_loadbalancer_additional_backends | default([]) }}"
roles:
- role: openshift_loadbalancer