mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #8697 from Security-Onion-Solutions/funstuff
move endgamehost
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# Elastic License 2.0.
|
||||
|
||||
{%- 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
|
||||
|
||||
check_file() {
|
||||
|
||||
@@ -1455,15 +1455,7 @@ idstools_pillar() {
|
||||
|
||||
soc_pillar() {
|
||||
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
|
||||
touch $soc_pillar_file
|
||||
}
|
||||
|
||||
manager_pillar() {
|
||||
@@ -1530,6 +1522,7 @@ create_global() {
|
||||
echo " pipeline: 'redis'" >> $global_pillar_file
|
||||
echo " repo_host: '$MAINIP'" >> $global_pillar_file
|
||||
echo " registry_host: '$MAINIP'" >> $global_pillar_file
|
||||
echo " endgamehost: '$ENDGAMEHOST'" >> $global_pillar_file
|
||||
}
|
||||
|
||||
create_sensoroni_pillar() {
|
||||
|
||||
Reference in New Issue
Block a user