From ca90c960f14824608e546f71ef777f19ce818c43 Mon Sep 17 00:00:00 2001 From: Michael Gugino Date: Fri, 29 Sep 2017 16:44:01 -0400 Subject: fix master-facts for provisioning --- roles/openshift_aws/tasks/master_facts.yml | 4 ++-- roles/openshift_aws/tasks/setup_master_group.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'roles/openshift_aws') diff --git a/roles/openshift_aws/tasks/master_facts.yml b/roles/openshift_aws/tasks/master_facts.yml index 6e716d11a..737cfc7a6 100644 --- a/roles/openshift_aws/tasks/master_facts.yml +++ b/roles/openshift_aws/tasks/master_facts.yml @@ -5,8 +5,8 @@ names: - "{{ item }}" with_items: - - "{{ openshift_aws_clusterid }}-master-external" - - "{{ openshift_aws_clusterid }}-master-internal" + - "{{ openshift_aws_elb_name }}-external" + - "{{ openshift_aws_elb_name }}-internal" delegate_to: localhost register: elbs diff --git a/roles/openshift_aws/tasks/setup_master_group.yml b/roles/openshift_aws/tasks/setup_master_group.yml index 90233a689..166f3b938 100644 --- a/roles/openshift_aws/tasks/setup_master_group.yml +++ b/roles/openshift_aws/tasks/setup_master_group.yml @@ -22,14 +22,14 @@ - name: add new master to masters group add_host: groups: "masters,etcd,nodes" - name: "{{ item.public_ip_address }}" + name: "{{ item.public_dns_name }}" hostname: "{{ openshift_aws_clusterid }}-master-{{ item.id[:-5] }}" with_items: "{{ instancesout.instances }}" - name: wait for ssh to become available wait_for: port: 22 - host: "{{ item.public_ip_address }}" + host: "{{ item.public_dns_name }}" timeout: 300 search_regex: OpenSSH with_items: "{{ instancesout.instances }}" -- cgit v1.2.3