123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- ---
- - import_playbook: ../init.yml
- vars:
- l_upgrade_no_switch_firewall_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
- l_init_fact_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
- l_base_packages_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
- - name: Configure the upgrade target for the common upgrade tasks 3.10
- hosts: oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config
- tasks:
- - set_fact:
- openshift_upgrade_target: '3.10'
- openshift_upgrade_min: '3.9'
- openshift_release: '3.10'
- - import_playbook: ../pre/config.yml
-
-
- vars:
- l_openshift_version_set_hosts: "oo_etcd_to_config:oo_masters_to_config:!oo_first_master"
- l_upgrade_repo_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
- l_upgrade_no_proxy_hosts: "oo_masters_to_config"
- l_upgrade_health_check_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
- l_upgrade_verify_targets_hosts: "oo_masters_to_config"
- l_upgrade_docker_target_hosts: "oo_masters_to_config:oo_etcd_to_config"
- l_upgrade_excluder_hosts: "oo_masters_to_config"
- openshift_protect_installed_version: False
- - import_playbook: ../../../../init/sanity_checks.yml
- vars:
-
- l_sanity_check_hosts: "{{ groups['oo_etcd_to_config'] | union(groups['oo_masters_to_config']) | union(groups['oo_lb_to_config'] | default([]) ) }}"
- - name: Flag pre-upgrade checks complete for hosts without errors
- hosts: oo_masters_to_config:oo_etcd_to_config
- tasks:
- - set_fact:
- pre_upgrade_complete: True
- - import_playbook: label_nodes.yml
- - hosts: oo_masters
- serial: 1
- tasks:
- - name: Enable core bootstrapping components
- include_tasks: ../../../../openshift-master/private/tasks/enable_bootstrap.yml
- - name: Place shim commands on the masters before we begin the upgrade
- import_role:
- name: openshift_control_plane
- tasks_from: static_shim
- - name: Configure components that must be available prior to upgrade
- hosts: oo_first_master
- pre_tasks:
- - name: Enable core bootstrapping components
- include_tasks: ../../../../openshift-master/private/tasks/enable_bootstrap_config.yml
- - name: Ensure the master bootstrap config has bootstrapping config
- import_role:
- name: openshift_node_group
- tasks_from: upgrade
- - name: Enable node configuration reconciliation
- import_role:
- name: openshift_node_group
- tasks_from: sync
- roles:
- - role: openshift_sdn
- when: openshift_use_openshift_sdn | default(True) | bool
- - name: Update master nodes
- hosts: oo_masters
- serial: 1
- tasks:
- - import_role:
- name: openshift_node
- tasks_from: upgrade_pre
- - import_role:
- name: openshift_node
- tasks_from: upgrade
- - import_playbook: ../upgrade_control_plane.yml
- vars:
- openshift_release: '3.10'
- - import_playbook: ../post_control_plane.yml
- - hosts: oo_masters
- tasks:
- - import_role:
- name: openshift_web_console
- tasks_from: remove_old_asset_config
- - hosts: oo_first_master
- tasks:
- - import_role:
- name: openshift_hosted
- tasks_from: registry_service_account.yml
- when: openshift_hosted_manage_registry | default(True) | bool
- - import_role:
- name: openshift_hosted
- tasks_from: remove_legacy_env_variables.yml
- when: openshift_hosted_manage_registry | default(True) | bool
|