summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/addNodes.yml
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-24 17:02:18 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-24 17:02:18 -0500
commite3071fd15f70214fe9f13b847f2cc5443716d955 (patch)
tree15d4f7ee4996c279e32fc9e47be851f7ed7336dd /playbooks/aws/openshift-cluster/addNodes.yml
parent31112d2b69819a20f7f5edaec2a49749559921b4 (diff)
parent05f63f022d1a42da6b5a34ae58c1eda745757b7c (diff)
downloadopenshift-e3071fd15f70214fe9f13b847f2cc5443716d955.tar.gz
openshift-e3071fd15f70214fe9f13b847f2cc5443716d955.tar.bz2
openshift-e3071fd15f70214fe9f13b847f2cc5443716d955.tar.xz
openshift-e3071fd15f70214fe9f13b847f2cc5443716d955.zip
Merge pull request #968 from detiber/fixScaleup2
Improve scaleup playbook
Diffstat (limited to 'playbooks/aws/openshift-cluster/addNodes.yml')
-rw-r--r--playbooks/aws/openshift-cluster/addNodes.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/playbooks/aws/openshift-cluster/addNodes.yml b/playbooks/aws/openshift-cluster/addNodes.yml
new file mode 100644
index 000000000..fff3e401b
--- /dev/null
+++ b/playbooks/aws/openshift-cluster/addNodes.yml
@@ -0,0 +1,39 @@
+---
+- name: Launch instance(s)
+ hosts: localhost
+ connection: local
+ gather_facts: no
+ vars_files:
+ - vars.yml
+ - ["vars.{{ deployment_type }}.{{ cluster_id }}.yml", vars.defaults.yml]
+ vars:
+ oo_extend_env: True
+ tasks:
+ - fail:
+ msg: Deployment type not supported for aws 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 }}"
+
+ - 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 }}"
+
+- include: scaleup.yml
+- include: list.yml