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:
Matt McEuen 2020-02-17 17:37:05 -06:00
parent 146a9a5b8e
commit 77bfeb11ea
1 changed files with 1 additions and 1 deletions

View File

@ -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"