upgrade_node_group.yml 764 B

1234567891011121314151617181920212223242526
  1. ---
  2. - include_tasks: provision_nodes.yml
  3. vars:
  4. openshift_aws_node_group_upgrade: True
  5. when:
  6. - openshift_aws_upgrade_provision_nodes | default(True)
  7. - debug: var=openshift_aws_current_asgs
  8. - debug: var=openshift_aws_created_asgs
  9. - name: fail if asg variables aren't set
  10. fail:
  11. msg: "Please ensure that openshift_aws_created_asgs and openshift_aws_current_asgs are defined."
  12. when:
  13. - openshift_aws_created_asgs == []
  14. - openshift_aws_current_asgs == []
  15. - include_tasks: accept_nodes.yml
  16. when: openshift_aws_upgrade_accept_nodes | default(True)
  17. - include_tasks: setup_scale_group_facts.yml
  18. - include_tasks: setup_master_group.yml
  19. vars:
  20. # we do not set etcd here as its limited to 1 or 3
  21. openshift_aws_masters_groups: masters,nodes