Merge "Fix network hostnames in tripleo-hosts-entries"
This commit is contained in:
commit
943e499b8c
@ -28,10 +28,10 @@
|
||||
loop:
|
||||
- 192.168.24.2 centos7.localdomain centos7
|
||||
- 192.168.24.2 centos7.ctlplane.localdomain centos7.ctlplane
|
||||
- 172.17.0.2 centos7.internal_api.localdomain centos7.internal_api
|
||||
- 172.17.0.2 centos7.internalapi.localdomain centos7.internalapi
|
||||
- 192.168.24.1 centos8.localdomain centos8
|
||||
- 192.168.24.1 centos8.ctlplane.localdomain centos8.ctlplane
|
||||
- 172.17.0.1 centos8.internal_api.localdomain centos8.internal_api
|
||||
- 172.17.0.1 centos8.internalapi.localdomain centos8.internalapi
|
||||
|
||||
- name: slurp /tmp/hosts
|
||||
slurp:
|
||||
|
@ -43,8 +43,8 @@
|
||||
{% if role_networks is not none %}
|
||||
{% for network in role_networks | default([]) %}
|
||||
{{ hostvars[host][networks[network]['name_lower'] ~ '_ip'] ~ ' ' ~
|
||||
host ~ '.' ~ networks[network]['name_lower'] ~ '.' ~ cloud_domain ~ ' ' ~
|
||||
host ~ '.' ~ networks[network]['name_lower'] }}
|
||||
host ~ '.' ~ network.lower() ~ '.' ~ cloud_domain ~ ' ' ~
|
||||
host ~ '.' ~ network.lower() }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{{ hostvars[host]['ctlplane_ip'] ~ ' ' ~
|
||||
|
Loading…
Reference in New Issue
Block a user