mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Ensure strelka backend, frontend, and filestream are connecting to redis locally, on heavy node instances
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{%- if grains.role == 'so-sensor' -%}
|
||||
{%- if grains.role in ['so-sensor', 'so-heavynode'] -%}
|
||||
{%- set mainint = salt['pillar.get']('sensor:mainint') %}
|
||||
{%- set ip = salt['grains.get']('ip_interfaces:' ~ mainint[0], salt['pillar.get']('sensor:mainip')) %}
|
||||
{%- else %}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{%- if grains.role == 'so-sensor' -%}
|
||||
{%- if grains.role in ['so-sensor', 'so-heavynode'] -%}
|
||||
{%- set mainint = salt['pillar.get']('sensor:mainint') %}
|
||||
{%- set ip = salt['grains.get']('ip_interfaces:' ~ mainint[0], salt['pillar.get']('sensor:mainip')) %}
|
||||
{%- else %}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{%- if grains.role == 'so-sensor' -%}
|
||||
{%- if grains.role in ['so-sensor', 'so-heavynode'] -%}
|
||||
{%- set mainint = salt['pillar.get']('sensor:mainint') %}
|
||||
{%- set ip = salt['grains.get']('ip_interfaces:' ~ mainint[0], salt['pillar.get']('sensor:mainip')) %}
|
||||
{%- else %}
|
||||
|
||||
@@ -710,10 +710,10 @@ detect_os() {
|
||||
disable_auto_start() {
|
||||
|
||||
# Remove the automated setup script from crontab, if it exists
|
||||
crontab -u $INSTALLUSERNAME -r
|
||||
logCmd "crontab -u $INSTALLUSERNAME -r"
|
||||
|
||||
# Truncate last line of the bash profile
|
||||
sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile
|
||||
logCmd "sed -i '$ d' /home/$INSTALLUSERNAME/.bash_profile"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user