upgrade_control_plane.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ---
  2. #
  3. # Control Plane Upgrade Playbook
  4. #
  5. # Upgrades masters and Docker (only on standalone etcd hosts)
  6. #
  7. # This upgrade does not include:
  8. # - node service running on masters
  9. # - docker running on masters
  10. # - node service running on dedicated nodes
  11. #
  12. # You can run the upgrade_nodes.yml playbook after this to upgrade these components separately.
  13. #
  14. - import_playbook: ../init.yml
  15. vars:
  16. l_upgrade_no_switch_firewall_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
  17. l_init_fact_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
  18. - name: Configure the upgrade target for the common upgrade tasks 3.10
  19. hosts: oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config
  20. tasks:
  21. - meta: clear_facts
  22. - set_fact:
  23. openshift_upgrade_target: '3.10'
  24. openshift_upgrade_min: '3.9'
  25. openshift_release: '3.10'
  26. - import_playbook: ../pre/config.yml
  27. # These vars a meant to exclude oo_nodes from plays that would otherwise include
  28. # them by default.
  29. vars:
  30. l_openshift_version_set_hosts: "oo_etcd_to_config:oo_masters_to_config:!oo_first_master"
  31. l_openshift_version_check_hosts: "oo_masters_to_config:!oo_first_master"
  32. l_upgrade_repo_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
  33. l_upgrade_no_proxy_hosts: "oo_masters_to_config"
  34. l_upgrade_health_check_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
  35. l_upgrade_verify_targets_hosts: "oo_masters_to_config"
  36. l_upgrade_docker_target_hosts: "oo_masters_to_config:oo_etcd_to_config"
  37. l_upgrade_excluder_hosts: "oo_masters_to_config"
  38. openshift_protect_installed_version: False
  39. - name: Flag pre-upgrade checks complete for hosts without errors
  40. hosts: oo_masters_to_config:oo_etcd_to_config
  41. tasks:
  42. - set_fact:
  43. pre_upgrade_complete: True
  44. - import_playbook: ../upgrade_control_plane.yml
  45. vars:
  46. openshift_release: '3.10'
  47. - import_playbook: ../post_control_plane.yml
  48. - hosts: oo_masters
  49. tasks:
  50. - import_role:
  51. name: openshift_web_console
  52. tasks_from: remove_old_asset_config