Browse Source

Merge pull request #6767 from mazzystr/fix-master-internal-elb

Fix to master-internal elb scheme
Kenny Woodson 7 years ago
parent
commit
1871fbc797
2 changed files with 2 additions and 2 deletions
  1. 1 1
      roles/openshift_aws/defaults/main.yml
  2. 1 1
      roles/openshift_aws/tasks/elb.yml

+ 1 - 1
roles/openshift_aws/defaults/main.yml

@@ -59,7 +59,7 @@ openshift_aws_elb_name_dict:
     external: "{{ openshift_aws_elb_basename }}-infra"
 
 openshift_aws_elb_idle_timout: 400
-openshift_aws_elb_scheme: internet-facing
+
 openshift_aws_elb_cert_arn: ''
 
 openshift_aws_elb_dict:

+ 1 - 1
roles/openshift_aws/tasks/elb.yml

@@ -15,7 +15,7 @@
     - "{{ subnetout.subnets[0].id }}"
     health_check: "{{ openshift_aws_elb_health_check }}"
     listeners: "{{ item.value }}"
-    scheme: "{{ openshift_aws_elb_scheme }}"
+    scheme: "{{ (item.key == 'internal') | ternary('internal','internet-facing') }}"
     tags: "{{ openshift_aws_elb_tags }}"
     wait: True
   register: new_elb