[overcloud-deploy] Fix hosts file generation

- When pacemaker is disabled, we don't have overcloud public vip.
  This patch avoids to append a canonical hostname w/o IP address.

Change-Id: I0041e861adef57465c8df9c820f709b4337c2ee6
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2016-12-09 15:48:05 +01:00
parent cffed80ccc
commit aeb8d31074
1 changed files with 2 additions and 0 deletions

View File

@ -28,7 +28,9 @@ cat <<EOF | sudo tee -a $HOSTFILE
## BEGIN OVERCLOUD HOSTS #nodocs
$(heat output-show -F raw overcloud HostsEntry)
{% if enable_pacemaker|bool %}
$(heat output-show -F raw overcloud PublicVip) overcloud-public-vip
{% endif %}
## END OVERCLOUD HOSTS #nodocs
EOF