Merge pull request #8697 from Security-Onion-Solutions/funstuff

move endgamehost
This commit is contained in:
Mike Reeves
2022-09-08 14:12:43 -04:00
committed by GitHub
2 changed files with 3 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
# Elastic License 2.0. # Elastic License 2.0.
{%- set MANAGER = salt['pillar.get']('global:url_base', '') %} {%- set MANAGER = salt['pillar.get']('global:url_base', '') %}
{%- set ENDGAMEHOST = salt['pillar.get']('soc:endgamehost', 'ENDGAMEHOST') %} {%- set ENDGAMEHOST = salt['pillar.get']('global:endgamehost', 'ENDGAMEHOST') %}
. /usr/sbin/so-common . /usr/sbin/so-common
check_file() { check_file() {

View File

@@ -1455,15 +1455,7 @@ idstools_pillar() {
soc_pillar() { soc_pillar() {
touch $adv_soc_pillar_file touch $adv_soc_pillar_file
printf '%s\n'\ touch $soc_pillar_file
"soc:"\
" es_index_patterns: '*:so-*,*:endgame-*'"\
"" > "$soc_pillar_file"
if [[ -n $ENDGAMEHOST ]]; then
printf '%s\n'\
" endgamehost: '$ENDGAMEHOST'"\
"" >> "$soc_pillar_file"
fi
} }
manager_pillar() { manager_pillar() {
@@ -1530,6 +1522,7 @@ create_global() {
echo " pipeline: 'redis'" >> $global_pillar_file echo " pipeline: 'redis'" >> $global_pillar_file
echo " repo_host: '$MAINIP'" >> $global_pillar_file echo " repo_host: '$MAINIP'" >> $global_pillar_file
echo " registry_host: '$MAINIP'" >> $global_pillar_file echo " registry_host: '$MAINIP'" >> $global_pillar_file
echo " endgamehost: '$ENDGAMEHOST'" >> $global_pillar_file
} }
create_sensoroni_pillar() { create_sensoroni_pillar() {