From e9cdb4d014bc20ce680c6019bdaf011f2190114c Mon Sep 17 00:00:00 2001
From: Vishal Patil <vishal.patil@nuagenetworks.net>
Date: Mon, 26 Sep 2016 18:28:07 -0400
Subject: Changes for Nuage HA

---
 roles/openshift_loadbalancer_facts/meta/main.yml  |  3 ++-
 roles/openshift_loadbalancer_facts/tasks/main.yml | 16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

(limited to 'roles/openshift_loadbalancer_facts')

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
-- 
cgit v1.2.3