move endgamehost

This commit is contained in:
Mike Reeves
2022-09-08 13:55:35 -04:00
parent 3785b97d95
commit 9c9509594a
2 changed files with 2 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,6 @@ idstools_pillar() {
soc_pillar() { soc_pillar() {
touch $adv_soc_pillar_file touch $adv_soc_pillar_file
printf '%s\n'\
"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 +1521,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() {