addNodes.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. - name: Launch instance(s)
  3. hosts: localhost
  4. connection: local
  5. gather_facts: no
  6. vars_files:
  7. - vars.yml
  8. - ["vars.{{ deployment_type }}.{{ cluster_id }}.yml", vars.defaults.yml]
  9. vars:
  10. oo_extend_env: True
  11. tasks:
  12. - fail:
  13. msg: Deployment type not supported for aws provider yet
  14. when: deployment_type == 'enterprise'
  15. - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
  16. vars:
  17. type: "compute"
  18. count: "{{ num_nodes }}"
  19. - include: tasks/launch_instances.yml
  20. vars:
  21. instances: "{{ node_names }}"
  22. cluster: "{{ cluster_id }}"
  23. type: "{{ k8s_type }}"
  24. g_sub_host_type: "{{ sub_host_type }}"
  25. - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
  26. vars:
  27. type: "infra"
  28. count: "{{ num_infra }}"
  29. - include: tasks/launch_instances.yml
  30. vars:
  31. instances: "{{ node_names }}"
  32. cluster: "{{ cluster_id }}"
  33. type: "{{ k8s_type }}"
  34. g_sub_host_type: "{{ sub_host_type }}"
  35. - include: scaleup.yml
  36. - include: list.yml