disable redis on heavynodes -- no longer in use

This commit is contained in:
reyesj2
2026-01-27 16:39:07 -06:00
parent e5226b50ed
commit 057131dce7
2 changed files with 18 additions and 1 deletions

View File

@@ -839,7 +839,6 @@ function createHEAVYNODE() {
add_elastic_agent_to_minion || return 1
add_sensor_to_minion || return 1
add_strelka_to_minion || return 1
add_redis_to_minion || return 1
add_telegraf_to_minion || return 1
}

View File

@@ -353,6 +353,22 @@ disable_logstash_heavynodes() {
done
}
disable_redis_heavynodes() {
local c=0
printf "\nChecking for heavynodes and disabling Redis if they exist\n"
for file in /opt/so/saltstack/local/pillar/minions/*.sls; do
if [[ "$file" =~ "_heavynode.sls" && ! "$file" =~ "/opt/so/saltstack/local/pillar/minions/adv_" ]]; then
c=1
echo "Disabling Redis for: $file"
so-yaml.py replace "$file" redis.enabled False
fi
done
if [[ "$c" != 0 ]]; then
FINAL_MESSAGE_QUEUE+=("Redis has been disabled on all heavynodes.")
fi
}
enable_highstate() {
echo "Enabling highstate."
salt-call state.enable highstate -l info --local
@@ -674,6 +690,8 @@ post_to_2.4.210() {
rollover_index "logs-kratos-so"
disable_redis_heavynodes
echo "Regenerating Elastic Agent Installers"
/sbin/so-elastic-agent-gen-installers