mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +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.
|
# 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() {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user