upgrade_control_plane.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_upgrade_non_node_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
  18. - name: Configure the upgrade target for the common upgrade tasks
  19. hosts: oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config
  20. tasks:
  21. - set_fact:
  22. openshift_upgrade_target: '3.6'
  23. openshift_upgrade_min: "{{ '1.5' if openshift_deployment_type == 'origin' else '3.5' }}"
  24. - import_playbook: ../pre/config.yml
  25. # These vars a meant to exclude oo_nodes from plays that would otherwise include
  26. # them by default.
  27. vars:
  28. l_openshift_version_set_hosts: "oo_etcd_to_config:oo_masters_to_config:!oo_first_master"
  29. l_openshift_version_check_hosts: "oo_masters_to_config:!oo_first_master"
  30. l_upgrade_repo_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
  31. l_upgrade_no_proxy_hosts: "oo_masters_to_config"
  32. l_upgrade_health_check_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config"
  33. l_upgrade_verify_targets_hosts: "oo_masters_to_config"
  34. l_upgrade_docker_target_hosts: "oo_masters_to_config:oo_etcd_to_config"
  35. l_upgrade_excluder_hosts: "oo_masters_to_config"
  36. - import_playbook: validator.yml
  37. - name: Flag pre-upgrade checks complete for hosts without errors
  38. hosts: oo_masters_to_config:oo_etcd_to_config
  39. tasks:
  40. - set_fact:
  41. pre_upgrade_complete: True
  42. # Pre-upgrade completed
  43. - import_playbook: ../upgrade_control_plane.yml
  44. vars:
  45. master_config_hook: "v3_6/master_config_upgrade.yml"
  46. - import_playbook: ../post_control_plane.yml