Handle IPv6 addresses in ironic_pxe_tftp healthcheck

Use the bind_host value in hiera which can be IPv4
or IPv6.  The IPv6 address is already bracketed.

Change-Id: If09f7732ebd63d461ac760ddadcfbd50b7954dbd
Closes-Bug: 1848615
(cherry picked from commit ce58ac1cb7)
This commit is contained in:
Bob Fournier 2019-10-17 21:14:27 -04:00
parent 46af9e4cc1
commit e70e15d104
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if grep "/httpd " /run_command 2>/dev/null ; then
protocol=http
path=
else
bind_host=$(ps -ef | grep -oe '--address \([0-9]\+\.\?\)\+' | awk '{print $2}')
bind_host=$(hiera ironic::pxe::tftp_bind_host)
bind_port=69
protocol=tftp
path=map-file