diff options
Diffstat (limited to 'roles/openshift_loadbalancer_facts')
-rw-r--r-- | roles/openshift_loadbalancer_facts/meta/main.yml | 3 | ||||
-rw-r--r-- | roles/openshift_loadbalancer_facts/tasks/main.yml | 16 |
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 |