summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/tasks/launch_instances.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/tasks/launch_instances.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/tasks/launch_instances.yml')
-rw-r--r--playbooks/aws/openshift-cluster/tasks/launch_instances.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/playbooks/aws/openshift-cluster/tasks/launch_instances.yml b/playbooks/aws/openshift-cluster/tasks/launch_instances.yml
index 22c617fea..15e775770 100644
--- a/playbooks/aws/openshift-cluster/tasks/launch_instances.yml
+++ b/playbooks/aws/openshift-cluster/tasks/launch_instances.yml
@@ -190,6 +190,22 @@
- instances
- ec2.instances
+- name: Add new instances to nodes_to_add group if needed
+ add_host:
+ hostname: "{{ item.0 }}"
+ ansible_ssh_host: "{{ item.1.dns_name }}"
+ ansible_ssh_user: "{{ deployment_vars[deployment_type].ssh_user }}"
+ ansible_sudo: "{{ deployment_vars[deployment_type].sudo }}"
+ groups: nodes_to_add
+ ec2_private_ip_address: "{{ item.1.private_ip }}"
+ ec2_ip_address: "{{ item.1.public_ip }}"
+ openshift_node_labels: "{{ node_label }}"
+ logrotate_scripts: "{{ logrotate }}"
+ with_together:
+ - instances
+ - ec2.instances
+ when: oo_extend_env is defined and oo_extend_env | bool
+
- name: Wait for ssh
wait_for: "port=22 host={{ item.dns_name }}"
with_items: ec2.instances