diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2016-02-02 15:20:51 -0500 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2016-02-02 15:20:51 -0500 |
commit | ff8f2013a8dde61bc8fe57c545c716b9a3dc4098 (patch) | |
tree | 6e14488702f5538d238fe89451e7fdb4ca7087b7 /playbooks/gce/openshift-cluster/add_nodes.yml | |
parent | 8ed73ca866da18963a7868eb1d0f66ba63a0d425 (diff) | |
parent | 2f3458447c23e8020af3dc08444fdb33201118e3 (diff) | |
download | openshift-ff8f2013a8dde61bc8fe57c545c716b9a3dc4098.tar.gz openshift-ff8f2013a8dde61bc8fe57c545c716b9a3dc4098.tar.bz2 openshift-ff8f2013a8dde61bc8fe57c545c716b9a3dc4098.tar.xz openshift-ff8f2013a8dde61bc8fe57c545c716b9a3dc4098.zip |
Merge pull request #1238 from detiber/gce_fixes
GCE cloud provider updates
Diffstat (limited to 'playbooks/gce/openshift-cluster/add_nodes.yml')
-rw-r--r-- | playbooks/gce/openshift-cluster/add_nodes.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/playbooks/gce/openshift-cluster/add_nodes.yml b/playbooks/gce/openshift-cluster/add_nodes.yml new file mode 100644 index 000000000..765e03fdc --- /dev/null +++ b/playbooks/gce/openshift-cluster/add_nodes.yml @@ -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 |