Set openshift_(ip|hostname) to ctrlplane ip
When enabling network isolation, openshift-ansible picks the wrong ip address as the default IP for the services. Set the IP to the ctrlplane network by default, which works with and without network isolation. Change-Id: I0deef6c2a71c1f2a34e6efed9586bbaa052b49c9
This commit is contained in:
parent
6894552a0d
commit
ec8d2bad4c
@ -80,6 +80,11 @@ outputs:
|
||||
ansible_user: {{ hostvars.raw_get(host)['ansible_user'] | default(hostvars.raw_get(host)['ansible_ssh_user']) | default('root') }}
|
||||
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
|
||||
ansible_become: true
|
||||
etcd_ip: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_ip: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_public_ip: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_hostname: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_public_hostname: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
{% endfor %}
|
||||
|
||||
nodes:
|
||||
@ -89,6 +94,11 @@ outputs:
|
||||
ansible_user: {{ hostvars.raw_get(host)['ansible_user'] | default(hostvars.raw_get(host)['ansible_ssh_user']) | default('root') }}
|
||||
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
|
||||
ansible_become: true
|
||||
etcd_ip: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_ip: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_public_ip: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_hostname: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_public_hostname: {{hostvars.raw_get(host)['ctlplane_ip']}}
|
||||
openshift_schedulable: true
|
||||
openshift_node_labels:
|
||||
region: 'infra'
|
||||
|
Loading…
Reference in New Issue
Block a user