|
@@ -13,6 +13,17 @@
|
|
|
get_current_openshift_version:
|
|
|
deployment_type: "{{ openshift_deployment_type }}"
|
|
|
|
|
|
+ # oo_first_master group might not be present due to provisioning plays
|
|
|
+ # for existing clusters, openshift_portal_net will be force-set by
|
|
|
+ # basic_facts.yml from value in existing master configs.
|
|
|
+ - name: set_fact openshift_portal_net if present on masters
|
|
|
+ set_fact:
|
|
|
+ openshift_portal_net: "{{ hostvars[groups.oo_first_master.0].openshift_portal_net }}"
|
|
|
+ when:
|
|
|
+ - "'oo_first_master' in groups"
|
|
|
+ - "groups.oo_first_master | length > 0"
|
|
|
+ - "'openshift_portal_net' in hostvars[groups.oo_first_master.0]"
|
|
|
+
|
|
|
- name: Gather Cluster facts
|
|
|
openshift_facts:
|
|
|
role: common
|
|
@@ -21,7 +32,7 @@
|
|
|
ip: "{{ openshift_ip | default(None) }}"
|
|
|
public_hostname: "{{ openshift_public_hostname | default(None) }}"
|
|
|
public_ip: "{{ openshift_public_ip | default(None) }}"
|
|
|
- portal_net: "{{ openshift_portal_net | default(openshift_master_portal_net) | default(None) }}"
|
|
|
+ portal_net: "{{ openshift_portal_net }}"
|
|
|
http_proxy: "{{ openshift_http_proxy | default(None) }}"
|
|
|
https_proxy: "{{ openshift_https_proxy | default(None) }}"
|
|
|
no_proxy: "{{ openshift_no_proxy | default(None) }}"
|