launch.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ---
  2. - name: Launch instance(s)
  3. hosts: localhost
  4. connection: local
  5. gather_facts: no
  6. vars_files:
  7. - vars.yml
  8. tasks:
  9. - fail: msg="Deployment type not supported for gce provider yet"
  10. when: deployment_type == 'enterprise'
  11. - include: ../../common/openshift-cluster/tasks/set_master_launch_facts.yml
  12. - include: tasks/launch_instances.yml
  13. vars:
  14. instances: "{{ master_names }}"
  15. cluster: "{{ cluster_id }}"
  16. type: "{{ k8s_type }}"
  17. g_sub_host_type: "default"
  18. - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
  19. vars:
  20. type: "compute"
  21. count: "{{ num_nodes }}"
  22. - include: tasks/launch_instances.yml
  23. vars:
  24. instances: "{{ node_names }}"
  25. cluster: "{{ cluster_id }}"
  26. type: "{{ k8s_type }}"
  27. g_sub_host_type: "{{ sub_host_type }}"
  28. - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
  29. vars:
  30. type: "infra"
  31. count: "{{ num_infra }}"
  32. - include: tasks/launch_instances.yml
  33. vars:
  34. instances: "{{ node_names }}"
  35. cluster: "{{ cluster_id }}"
  36. type: "{{ k8s_type }}"
  37. g_sub_host_type: "{{ sub_host_type }}"
  38. - add_host:
  39. name: "{{ master_names.0 }}"
  40. groups: service_master
  41. when: master_names is defined and master_names.0 is defined
  42. - include: update.yml
  43. #
  44. #- name: Deploy OpenShift Services
  45. # hosts: service_master
  46. # connection: ssh
  47. # gather_facts: yes
  48. # roles:
  49. # - openshift_registry
  50. # - openshift_router
  51. #
  52. #- include: ../../common/openshift-cluster/create_services.yml
  53. # vars:
  54. # g_svc_master: "{{ service_master }}"
  55. - include: list.yml