haproxy: remove echo from anchor script
This removes an echo from the haproxy anchor, and renders the related IDENTIFIER variable value directly inline instead. The echo approach fails under some condition related to host reboots, resulting in faulty input data for the script and bad output haproxy configs, with e.g. "frontend -fe". Change-Id: Id4e258b04290a8ce96b8b518a9c541ecedeee39e
This commit is contained in:
parent
146a9a5b8e
commit
77bfeb11ea
|
@ -88,7 +88,7 @@ install_config() {
|
|||
|
||||
if [ "x$SERVICE_IPS" != "x" ]; then
|
||||
if [ "x$DEST_PORT" != "x" ]; then
|
||||
IDENTIFIER=$(echo "{{ $namespace }}-{{ $service }}")
|
||||
IDENTIFIER="{{ $namespace }}-{{ $service }}"
|
||||
echo "Adding $IDENTIFIER to haproxy config"
|
||||
# Add frontend config
|
||||
echo >> "$NEXT_HAPROXY_CONF"
|
||||
|
|
Loading…
Reference in New Issue