upgrade.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. # This playbook upgrades an existing AWS cluster, leaving nodes untouched if used with an 'online' deployment type.
  3. # Usage:
  4. # ansible-playbook playbooks/aws/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml -e deployment_type=online -e cluster_id=<cluster_id>
  5. - hosts: localhost
  6. gather_facts: no
  7. vars_files:
  8. - ../../vars.yml
  9. - "../../vars.{{ deployment_type }}.{{ cluster_id }}.yml"
  10. - ../../cluster_hosts.yml
  11. tasks:
  12. - set_fact:
  13. g_ssh_user_tmp: "{{ deployment_vars[deployment_type].ssh_user }}"
  14. g_sudo_tmp: "{{ deployment_vars[deployment_type].sudo }}"
  15. g_etcd_hosts: "{{ etcd_hosts }}"
  16. g_master_hosts: "{{ master_hosts }}"
  17. g_node_hosts: "{{ node_hosts }}"
  18. g_lb_hosts: "{{ lb_hosts }}"
  19. - include: ../../../../common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml
  20. vars:
  21. g_etcd_hosts: "{{ hostvars.localhost.g_etcd_hosts }}"
  22. g_master_hosts: "{{ hostvars.localhost.g_master_hosts }}"
  23. g_node_hosts: "{{ hostvars.localhost.g_node_hosts }}"
  24. g_lb_hosts: "{{ hostvars.localhost.g_lb_hosts }}"
  25. g_ssh_user: "{{ hostvars.localhost.g_ssh_user_tmp }}"
  26. g_sudo: "{{ hostvars.localhost.g_sudo_tmp }}"
  27. g_nodeonmaster: true
  28. openshift_cluster_id: "{{ cluster_id }}"
  29. openshift_debug_level: 2
  30. openshift_deployment_type: "{{ deployment_type }}"
  31. openshift_hostname: "{{ ec2_private_ip_address }}"
  32. openshift_public_hostname: "{{ ec2_ip_address }}"