summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-10-03 11:28:44 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-10-03 14:56:29 -0400
commite297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee (patch)
treecce02487ed8d94a93b7c141e0579e32feb026543 /playbooks
parentb0ddb188ef1dc8484f4d9e1f7ae58dcd4ac6a299 (diff)
downloadopenshift-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 'playbooks')
-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