diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-10-31 09:17:59 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-11-01 18:38:40 +0000 |
commit | 082ed08a07f6c61e45c69dec8006f4034f8d80dd (patch) | |
tree | b5d8595ea58ed6ed95de7533f2e8e4bab2d662c1 /roles/openshift_aws/tasks/elb.yml | |
parent | f879d554c44b529b26b9908cd61b0e7e7cebf102 (diff) | |
download | openshift-082ed08a07f6c61e45c69dec8006f4034f8d80dd.tar.gz openshift-082ed08a07f6c61e45c69dec8006f4034f8d80dd.tar.bz2 openshift-082ed08a07f6c61e45c69dec8006f4034f8d80dd.tar.xz openshift-082ed08a07f6c61e45c69dec8006f4034f8d80dd.zip |
Adding elb changes to provision elbs and add to scale group.
Diffstat (limited to 'roles/openshift_aws/tasks/elb.yml')
-rw-r--r-- | roles/openshift_aws/tasks/elb.yml | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/roles/openshift_aws/tasks/elb.yml b/roles/openshift_aws/tasks/elb.yml index 7bc3184df..56abe9dd7 100644 --- a/roles/openshift_aws/tasks/elb.yml +++ b/roles/openshift_aws/tasks/elb.yml @@ -9,12 +9,6 @@ - name: debug debug: var=vpcout -- name: fetch the remote instances - ec2_remote_facts: - region: "{{ openshift_aws_region }}" - filters: "{{ openshift_aws_elb_instance_filter }}" - register: instancesout - - name: fetch the default subnet id ec2_vpc_subnet_facts: region: "{{ openshift_aws_region }}" @@ -23,7 +17,7 @@ vpc-id: "{{ vpcout.vpcs[0].id }}" register: subnetout -- name: +- name: dump the elb listeners debug: msg: "{{ openshift_aws_elb_listeners[openshift_aws_node_group_type][openshift_aws_elb_direction] if 'master' in openshift_aws_node_group_type or 'infra' in openshift_aws_node_group_type @@ -33,6 +27,7 @@ ec2_elb_lb: name: "{{ l_openshift_aws_elb_name }}" state: present + cross_az_load_balancing: "{{ openshift_aws_elb_az_load_balancing }}" security_group_names: "{{ openshift_aws_elb_security_groups }}" idle_timeout: "{{ openshift_aws_elb_idle_timout }}" region: "{{ openshift_aws_region }}" @@ -43,25 +38,9 @@ if 'master' in openshift_aws_node_group_type or 'infra' in openshift_aws_node_group_type else openshift_aws_elb_listeners }}" scheme: "{{ openshift_aws_elb_scheme }}" - tags: - KubernetesCluster: "{{ openshift_aws_clusterid }}" + tags: "{{ openshift_aws_elb_tags }}" register: new_elb -# It is necessary to ignore_errors here because the instances are not in 'ready' -# state when first added to ELB -- name: "Add instances to ELB {{ l_openshift_aws_elb_name }}" - ec2_elb: - instance_id: "{{ item.id }}" - ec2_elbs: "{{ l_openshift_aws_elb_name }}" - state: present - region: "{{ openshift_aws_region }}" - wait: False - with_items: "{{ instancesout.instances }}" - ignore_errors: True - retries: 10 - register: elb_call - until: elb_call|succeeded - - debug: msg: "{{ item }}" with_items: |