Drop overcloud entries in /etc/hosts, >= train

/etc/hosts on the undercloud is now updated with
entries from the overcloud. No need to duplicate
the entries by adding them again here.

Change-Id: I1879f30e020eebf8877f15ce21f68280e56c5107
This commit is contained in:
Harald Jensås 2020-03-18 08:17:07 +01:00
parent ffd8f24e0a
commit 1c77a24b3b

@ -9,13 +9,16 @@ set -eux
## * Prepare Your Environment.
## ::
{% if release in ['mitaka', 'newton', 'ocata', 'pike', 'queens', 'rocky', 'stein'] -%}
HOSTFILE=/etc/hosts
{% endif -%}
## * Source in the undercloud credentials.
## ::
. {{ working_dir }}/stackrc
{% if release in ['mitaka', 'newton', 'ocata', 'pike', 'queens', 'rocky', 'stein'] -%}
## * Remove any old overcloud host entries from `/etc/hosts`.
## ::
@ -34,6 +37,7 @@ $(openstack stack output show overcloud PublicVip \
{% endif %}
## END OVERCLOUD HOSTS #nodocs
EOF
{% endif -%}
## * Create the `heat_stack_owner` role if it doesn't already exist.
## ::