mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Merge pull request #10960 from Security-Onion-Solutions/2.4/fleetcustomfqdn
Refactor to remove new line
This commit is contained in:
@@ -43,14 +43,12 @@ fi
|
|||||||
|
|
||||||
# Query for FQDN entries & add them to the list
|
# Query for FQDN entries & add them to the list
|
||||||
{% if ELASTICFLEETMERGED.config.server.custom_fqdn | length > 0 %}
|
{% if ELASTICFLEETMERGED.config.server.custom_fqdn | length > 0 %}
|
||||||
CUSTOMFQDNLIST=({{ ELASTICFLEETMERGED.config.server.custom_fqdn | join(' ') }})
|
CUSTOMFQDNLIST=('{{ ELASTICFLEETMERGED.config.server.custom_fqdn | join(' ') }}')
|
||||||
if [ -n "$CUSTOMFQDNLIST" ]; then
|
readarray -t -d ' ' CUSTOMFQDN < <(printf '%s' "$CUSTOMFQDNLIST")
|
||||||
readarray -t CUSTOMFQDN <<< $CUSTOMFQDNLIST
|
|
||||||
for CUSTOMNAME in "${CUSTOMFQDN[@]}"
|
for CUSTOMNAME in "${CUSTOMFQDN[@]}"
|
||||||
do
|
do
|
||||||
NEW_LIST+=("https://$CUSTOMNAME:8220")
|
NEW_LIST+=("$CUSTOMNAME:5055")
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Query for the current Grid Nodes that are running Logstash
|
# Query for the current Grid Nodes that are running Logstash
|
||||||
|
|||||||
@@ -43,14 +43,12 @@ fi
|
|||||||
|
|
||||||
# Query for FQDN entries & add them to the list
|
# Query for FQDN entries & add them to the list
|
||||||
{% if ELASTICFLEETMERGED.config.server.custom_fqdn | length > 0 %}
|
{% if ELASTICFLEETMERGED.config.server.custom_fqdn | length > 0 %}
|
||||||
CUSTOMFQDNLIST=({{ ELASTICFLEETMERGED.config.server.custom_fqdn | join(' ') }})
|
CUSTOMFQDNLIST=('{{ ELASTICFLEETMERGED.config.server.custom_fqdn | join(' ') }}')
|
||||||
if [ -n "$CUSTOMFQDNLIST" ]; then
|
readarray -t -d ' ' CUSTOMFQDN < <(printf '%s' "$CUSTOMFQDNLIST")
|
||||||
readarray -t CUSTOMFQDN <<< $CUSTOMFQDNLIST
|
|
||||||
for CUSTOMNAME in "${CUSTOMFQDN[@]}"
|
for CUSTOMNAME in "${CUSTOMFQDN[@]}"
|
||||||
do
|
do
|
||||||
NEW_LIST+=("https://$CUSTOMNAME:8220")
|
NEW_LIST+=("https://$CUSTOMNAME:8220")
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Query for the current Grid Nodes that are running Logstash (which includes Fleet Nodes)
|
# Query for the current Grid Nodes that are running Logstash (which includes Fleet Nodes)
|
||||||
|
|||||||
Reference in New Issue
Block a user