mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fleet standaline custom fqdn fixes
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
{% set CUSTOM_FLEET_HOSTNAME = salt['pillar.get']('static:fleet_custom_hostname', None) %}
|
{% set CUSTOM_FLEET_HOSTNAME = salt['pillar.get']('static:fleet_custom_hostname', None) %}
|
||||||
|
|
||||||
{% if CUSTOM_FLEET_HOSTNAME != None %}
|
{% if CUSTOM_FLEET_HOSTNAME != None %}
|
||||||
{% set HOSTNAME = {{ CUSTOM_FLEET_HOSTNAME }} %}
|
{% set HOSTNAME = CUSTOM_FLEET_HOSTNAME %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set HOSTNAME = {{ grains.host }} %}
|
{% set HOSTNAME = grains.host %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
so/fleet:
|
so/fleet:
|
||||||
|
|||||||
@@ -499,7 +499,7 @@ fi
|
|||||||
|
|
||||||
if [[ $is_fleet_standalone && $FLEETCUSTOMHOSTNAME != '' ]]; then
|
if [[ $is_fleet_standalone && $FLEETCUSTOMHOSTNAME != '' ]]; then
|
||||||
set_progress_str 73 "$(print_salt_state_apply 'fleet.event_update-custom-hostname')"
|
set_progress_str 73 "$(print_salt_state_apply 'fleet.event_update-custom-hostname')"
|
||||||
pillar_override="{"static":{"fleet_custom_hostname":"$FLEETCUSTOMHOSTNAME"}}"
|
pillar_override=='"{"static":{"fleet_custom_hostname":"'$FLEETCUSTOMHOSTNAME'"}}"'
|
||||||
salt-call state.apply -l info fleet.event_update-custom-hostname pillar=$pillar_override >> $setup_log 2>&1
|
salt-call state.apply -l info fleet.event_update-custom-hostname pillar=$pillar_override >> $setup_log 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user