diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-24 14:47:54 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-11-24 14:47:54 -0500 |
commit | b169e206f7964b3dcf3c1d142d945042618782a7 (patch) | |
tree | d8ce3a291a4309bdff5ac1308418ed1149b85499 /playbooks/aws/openshift-cluster/addNodes.yml | |
parent | 4ffde064c126e54930f776c727ab91b8c150166d (diff) | |
download | openshift-b169e206f7964b3dcf3c1d142d945042618782a7.tar.gz openshift-b169e206f7964b3dcf3c1d142d945042618782a7.tar.bz2 openshift-b169e206f7964b3dcf3c1d142d945042618782a7.tar.xz openshift-b169e206f7964b3dcf3c1d142d945042618782a7.zip |
more aws support for scaleup
Diffstat (limited to 'playbooks/aws/openshift-cluster/addNodes.yml')
-rw-r--r-- | playbooks/aws/openshift-cluster/addNodes.yml | 58 |
1 files changed, 58 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..09bf34666 --- /dev/null +++ b/playbooks/aws/openshift-cluster/addNodes.yml @@ -0,0 +1,58 @@ +--- +- name: Launch instance(s) + hosts: localhost + connection: local + gather_facts: no + vars_files: + - vars.yml + - ["vars.{{ deployment_type }}.{{ cluster_id }}.yml", vars.defaults.yml] + tasks: + - fail: + msg: Deployment type not supported for aws provider yet + when: deployment_type == 'enterprise' + + - include: ../../common/openshift-cluster/tasks/set_etcd_launch_facts.yml + - include: tasks/launch_instances.yml + vars: + instances: "{{ etcd_names }}" + cluster: "{{ cluster_id }}" + type: "{{ k8s_type }}" + g_sub_host_type: "default" + + - include: ../../common/openshift-cluster/tasks/set_master_launch_facts.yml + - include: tasks/launch_instances.yml + vars: + instances: "{{ master_names }}" + cluster: "{{ cluster_id }}" + type: "{{ k8s_type }}" + g_sub_host_type: "default" + + - 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 }}" + + - add_host: + name: "{{ master_names.0 }}" + groups: service_master + when: master_names is defined and master_names.0 is defined + +- include: update.yml +- include: list.yml |