|
@@ -0,0 +1,43 @@
|
|
|
+---
|
|
|
+- name: Launch instance(s)
|
|
|
+ hosts: localhost
|
|
|
+ connection: local
|
|
|
+ become: no
|
|
|
+ gather_facts: no
|
|
|
+ vars_files:
|
|
|
+ - vars.yml
|
|
|
+ vars:
|
|
|
+ oo_extend_env: True
|
|
|
+ tasks:
|
|
|
+ - fail:
|
|
|
+ msg: Deployment type not supported for gce provider yet
|
|
|
+ when: deployment_type == 'enterprise'
|
|
|
+
|
|
|
+ - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
|
|
|
+ vars:
|
|
|
+ type: "compute"
|
|
|
+ count: "{{ num_nodes }}"
|
|
|
+ - include: tasks/launch_instances.yml
|
|
|
+ vars:
|
|
|
+ instances: "{{ node_names }}"
|
|
|
+ cluster: "{{ cluster_id }}"
|
|
|
+ type: "{{ k8s_type }}"
|
|
|
+ g_sub_host_type: "{{ sub_host_type }}"
|
|
|
+ gce_machine_type: "{{ lookup('env', 'gce_machine_node_type') | default(lookup('env', 'gce_machine_type'), true) }}"
|
|
|
+ gce_machine_image: "{{ lookup('env', 'gce_machine_node_image') | default(lookup('env', 'gce_machine_image'), true) }}"
|
|
|
+
|
|
|
+ - include: ../../common/openshift-cluster/tasks/set_node_launch_facts.yml
|
|
|
+ vars:
|
|
|
+ type: "infra"
|
|
|
+ count: "{{ num_infra }}"
|
|
|
+ - include: tasks/launch_instances.yml
|
|
|
+ vars:
|
|
|
+ instances: "{{ node_names }}"
|
|
|
+ cluster: "{{ cluster_id }}"
|
|
|
+ type: "{{ k8s_type }}"
|
|
|
+ g_sub_host_type: "{{ sub_host_type }}"
|
|
|
+ gce_machine_type: "{{ lookup('env', 'gce_machine_node_type') | default(lookup('env', 'gce_machine_type'), true) }}"
|
|
|
+ gce_machine_image: "{{ lookup('env', 'gce_machine_node_image') | default(lookup('env', 'gce_machine_image'), true) }}"
|
|
|
+
|
|
|
+- include: scaleup.yml
|
|
|
+- include: list.yml
|