diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-09-07 16:32:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 16:32:56 -0400 |
commit | 7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8 (patch) | |
tree | b900625cbb8a97af4d2cf0d19d452bd643a9e0ec /roles/openshift_aws/tasks/provision.yml | |
parent | dc0e3d218ba953e1bc1525ef337f99677deee6c3 (diff) | |
parent | efe86b44bce679db38cca654818dc3837bb05f6a (diff) | |
download | openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.tar.gz openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.tar.bz2 openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.tar.xz openshift-7b1c455c01d10ab5aa804ad48a5b60ab53d6a0c8.zip |
Merge pull request #5211 from kwoodson/provisioning_fixes
Provisioning updates.
Diffstat (limited to 'roles/openshift_aws/tasks/provision.yml')
-rw-r--r-- | roles/openshift_aws/tasks/provision.yml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/roles/openshift_aws/tasks/provision.yml b/roles/openshift_aws/tasks/provision.yml new file mode 100644 index 000000000..189caeaee --- /dev/null +++ b/roles/openshift_aws/tasks/provision.yml @@ -0,0 +1,54 @@ +--- +- when: openshift_aws_create_vpc | bool + name: create default vpc + include: vpc.yml + +- when: openshift_aws_create_iam_cert | bool + name: create the iam_cert for elb certificate + include: iam_cert.yml + +- when: openshift_aws_users | length > 0 + name: create aws ssh keypair + include: ssh_keys.yml + +- when: openshift_aws_create_s3 | bool + name: create s3 bucket for registry + include: s3.yml + +- name: include scale group creation for master + include: build_node_group.yml + +- name: fetch newly created instances + ec2_remote_facts: + region: "{{ openshift_aws_region }}" + filters: + "tag:clusterid": "{{ openshift_aws_clusterid }}" + "tag:host-type": "{{ openshift_aws_node_group_type }}" + instance-state-name: running + register: instancesout + retries: 20 + delay: 3 + until: instancesout.instances|length > 0 + +- name: create our master internal load balancers + include: elb.yml + vars: + openshift_aws_elb_direction: internal + openshift_aws_elb_name: "{{ openshift_aws_clusterid }}-{{openshift_aws_node_group_type }}-internal" + openshift_aws_elb_scheme: internal + +- name: create our master external load balancers + include: elb.yml + vars: + openshift_aws_elb_direction: external + openshift_aws_elb_name: "{{ openshift_aws_clusterid }}-{{openshift_aws_node_group_type }}-external" + openshift_aws_elb_scheme: internet-facing + +- name: wait for ssh to become available + wait_for: + port: 22 + host: "{{ item.public_ip_address }}" + timeout: 300 + search_regex: OpenSSH + with_items: "{{ instancesout.instances }}" + when: openshift_aws_wait_for_ssh | bool |