diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-01-22 13:17:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-22 13:17:19 -0800 |
commit | b79b497a9a443140f23cd3b8ef5c19d1893bce95 (patch) | |
tree | 0ae7a57c61f282c7eaede25a0f7391b4095c8691 /playbooks/init/cluster_facts.yml | |
parent | f34f986bf3ab0523ce6ec1145b4a57a51b9ab3fa (diff) | |
parent | 7b33ab6dad2f9775a4e206ec90bc10ce46ae02f6 (diff) | |
download | openshift-b79b497a9a443140f23cd3b8ef5c19d1893bce95.tar.gz openshift-b79b497a9a443140f23cd3b8ef5c19d1893bce95.tar.bz2 openshift-b79b497a9a443140f23cd3b8ef5c19d1893bce95.tar.xz openshift-b79b497a9a443140f23cd3b8ef5c19d1893bce95.zip |
Merge pull request #6814 from mgugino-upstream-stage/move-up-base-packages
Automatic merge from submit-queue.
Install base_packages earlier
Currently, openshift_facts requires pyyaml to be installed.
This package is installed via init/base_packages.yml, which
is currently called after init/facts.yml. This results
in a situation where installs will fail due to missing
python dependency.
This commit splits init/facts.yml into two, and
allows base_packages.yml to be run before the
openshift_facts.py plugin is executed.
Diffstat (limited to 'playbooks/init/cluster_facts.yml')
-rw-r--r-- | playbooks/init/cluster_facts.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/playbooks/init/cluster_facts.yml b/playbooks/init/cluster_facts.yml new file mode 100644 index 000000000..636679e32 --- /dev/null +++ b/playbooks/init/cluster_facts.yml @@ -0,0 +1,42 @@ +--- +- name: Initialize cluster facts + # l_init_fact_hosts is passed in via play during control-plane-only + # upgrades and scale-up plays; otherwise oo_all_hosts is used. + hosts: "{{ l_init_fact_hosts | default('oo_all_hosts') }}" + roles: + - role: openshift_facts + tasks: + - name: Gather Cluster facts + openshift_facts: + role: common + local_facts: + deployment_type: "{{ openshift_deployment_type }}" + deployment_subtype: "{{ openshift_deployment_subtype | default(None) }}" + hostname: "{{ openshift_hostname | default(None) }}" + 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) }}" + http_proxy: "{{ openshift_http_proxy | default(None) }}" + https_proxy: "{{ openshift_https_proxy | default(None) }}" + no_proxy: "{{ openshift_no_proxy | default(None) }}" + generate_no_proxy_hosts: "{{ openshift_generate_no_proxy_hosts | default(True) }}" + + - name: Set fact of no_proxy_internal_hostnames + openshift_facts: + role: common + local_facts: + no_proxy_internal_hostnames: "{{ hostvars | lib_utils_oo_select_keys(groups['oo_nodes_to_config'] + | union(groups['oo_masters_to_config']) + | union(groups['oo_etcd_to_config'] | default([]))) + | lib_utils_oo_collect('openshift.common.hostname') | default([]) | join (',') + }}" + when: + - openshift_http_proxy is defined or openshift_https_proxy is defined + - openshift_generate_no_proxy_hosts | default(True) | bool + + - name: Initialize openshift.node.sdn_mtu + openshift_facts: + role: node + local_facts: + sdn_mtu: "{{ openshift_node_sdn_mtu | default(None) }}" |