summaryrefslogtreecommitdiffstats
path: root/roles/openshift_loadbalancer_facts
diff options
context:
space:
mode:
authorVishal Patil <vishal.patil@nuagenetworks.net>2016-09-26 18:28:07 -0400
committerVishal Patil <vishal.patil@nuagenetworks.net>2016-09-27 15:07:51 -0400
commite9cdb4d014bc20ce680c6019bdaf011f2190114c (patch)
tree4ce88233256054102e5182e228e403fe0849994b /roles/openshift_loadbalancer_facts
parentd5f9fa24a4e5d44ba5eb8637da5393195f0335c9 (diff)
downloadopenshift-e9cdb4d014bc20ce680c6019bdaf011f2190114c.tar.gz
openshift-e9cdb4d014bc20ce680c6019bdaf011f2190114c.tar.bz2
openshift-e9cdb4d014bc20ce680c6019bdaf011f2190114c.tar.xz
openshift-e9cdb4d014bc20ce680c6019bdaf011f2190114c.zip
Changes for Nuage HA
Diffstat (limited to 'roles/openshift_loadbalancer_facts')
-rw-r--r--roles/openshift_loadbalancer_facts/meta/main.yml3
-rw-r--r--roles/openshift_loadbalancer_facts/tasks/main.yml16
2 files changed, 18 insertions, 1 deletions
diff --git a/roles/openshift_loadbalancer_facts/meta/main.yml b/roles/openshift_loadbalancer_facts/meta/main.yml
index 4c5b6552b..46959355b 100644
--- a/roles/openshift_loadbalancer_facts/meta/main.yml
+++ b/roles/openshift_loadbalancer_facts/meta/main.yml
@@ -10,4 +10,5 @@ galaxy_info:
versions:
- 7
dependencies:
-- role: openshift_facts
+ - role: openshift_facts
+ - role: nuage_common
diff --git a/roles/openshift_loadbalancer_facts/tasks/main.yml b/roles/openshift_loadbalancer_facts/tasks/main.yml
index dc244c0be..5936ce5ba 100644
--- a/roles/openshift_loadbalancer_facts/tasks/main.yml
+++ b/roles/openshift_loadbalancer_facts/tasks/main.yml
@@ -20,6 +20,14 @@
binds:
- "*:{{ openshift.loadbalancer.frontend_port }}"
default_backend: atomic-openshift-api
+ - name: nuage-monitor
+ mode: tcp
+ options:
+ - tcplog
+ binds:
+ - "*:{{ nuage_mon_rest_server_port }}"
+ default_backend: nuage-monitor
+ when: openshift.common.use_nuage | bool
backends:
- name: atomic-openshift-api
mode: tcp
@@ -28,3 +36,11 @@
servers: "{{ hostvars
| oo_select_keys(groups['oo_masters'])
| oo_haproxy_backend_masters(openshift.loadbalancer.frontend_port) }}"
+ - name: nuage-monitor
+ mode: tcp
+ option: tcplog
+ balance: source
+ servers: "{{ hostvars
+ | oo_select_keys(groups['oo_masters'])
+ | oo_haproxy_backend_masters(nuage_mon_rest_server_port) }}"
+ when: openshift.common.use_nuage | bool