diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-08-21 23:49:49 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2015-11-04 19:57:21 -0500 |
commit | 3778662ef816b2bb0a3788ed65229b45622a0139 (patch) | |
tree | a64dec3e317a55d87d86a5262ca2b598f625c9de /playbooks/common/openshift-master | |
parent | 399b19864653806c769ac954a6c79ef13a895d64 (diff) | |
download | openshift-3778662ef816b2bb0a3788ed65229b45622a0139.tar.gz openshift-3778662ef816b2bb0a3788ed65229b45622a0139.tar.bz2 openshift-3778662ef816b2bb0a3788ed65229b45622a0139.tar.xz openshift-3778662ef816b2bb0a3788ed65229b45622a0139.zip |
Start of true master ha
Diffstat (limited to 'playbooks/common/openshift-master')
-rw-r--r-- | playbooks/common/openshift-master/config.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/playbooks/common/openshift-master/config.yml b/playbooks/common/openshift-master/config.yml index 59c4b2370..84ce65f48 100644 --- a/playbooks/common/openshift-master/config.yml +++ b/playbooks/common/openshift-master/config.yml @@ -34,7 +34,9 @@ - role: common local_facts: hostname: "{{ openshift_hostname | default(None) }}" + ip: "{{ openshift_ip | default(None) }}" public_hostname: "{{ openshift_public_hostname | default(None) }}" + public_ip: "{{ openshift_public_ip | default(None) }}" deployment_type: "{{ openshift_deployment_type }}" - role: master local_facts: @@ -207,6 +209,30 @@ parsed_named_certificates: "{{ openshift_master_named_certificates | oo_parse_certificate_names(master_cert_config_dir, openshift.common.internal_hostnames) }}" when: openshift_master_named_certificates is defined +- name: Compute haproxy_backend_servers + hosts: localhost + connection: local + sudo: false + gather_facts: no + tasks: + - set_fact: + haproxy_backend_servers: "{{ hostvars | oo_select_keys(groups['oo_masters_to_config']) | oo_haproxy_backend_masters }}" + +- name: Configure load balancers + hosts: oo_first_master + vars: + haproxy_frontends: + - name: atomic-openshift + bind: "*:80" + default_backend: atomic-openshift + haproxy_backends: + - name: atomic-openshift + balance: roundrobin + servers: "{{ hostvars.localhost.haproxy_backend_servers }}" + roles: + - role: haproxy + when: groups.oo_masters_to_config | length > 1 + - name: Configure master instances hosts: oo_masters_to_config vars: |