mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
[fix] Jinja2 templating comparisons
This commit is contained in:
@@ -17,7 +17,7 @@ eval:
|
||||
- so-idstools
|
||||
- so-auth-api
|
||||
- so-auth-ui
|
||||
{%- if OSQUERY != 0 %}
|
||||
{%- if OSQUERY != '0' %}
|
||||
- so-mysql
|
||||
- so-fleet
|
||||
- so-redis
|
||||
@@ -30,23 +30,23 @@ eval:
|
||||
- so-zeek
|
||||
- so-curator
|
||||
- so-elastalert
|
||||
{%- if WAZUH != 0 %}
|
||||
{%- if WAZUH != '0' %}
|
||||
- so-wazuh
|
||||
{%- endif %}
|
||||
- so-soctopus
|
||||
{%- if THEHIVE != 0 %}
|
||||
{%- if THEHIVE != '0' %}
|
||||
- so-thehive
|
||||
- so-thehive-es
|
||||
- so-cortex
|
||||
{%- endif %}
|
||||
{%- if PLAYBOOK != 0 %}
|
||||
{%- if PLAYBOOK != '0' %}
|
||||
- so-playbook
|
||||
- so-navigator
|
||||
{%- endif %}
|
||||
{%- if FREQSERVER != 0 %}
|
||||
{%- if FREQSERVER != '0' %}
|
||||
- so-freqserver
|
||||
{%- endif %}
|
||||
{%- if DOMAINSTATS != 0 %}
|
||||
{%- if DOMAINSTATS != '0' %}
|
||||
- so-domainstats
|
||||
{%- endif %}
|
||||
heavy_node:
|
||||
@@ -107,28 +107,28 @@ master_search:
|
||||
- so-elastalert
|
||||
- so-filebeat
|
||||
- so-soctopus
|
||||
{%- if OSQUERY != 0 %}
|
||||
{%- if OSQUERY != '0' %}
|
||||
- so-mysql
|
||||
- so-fleet
|
||||
- so-redis
|
||||
{%- endif %}
|
||||
{%- if WAZUH != 0 %}
|
||||
{%- if WAZUH != '0' %}
|
||||
- so-wazuh
|
||||
{%- endif %}
|
||||
- so-soctopus
|
||||
{%- if THEHIVE != 0 %}
|
||||
{%- if THEHIVE != '0' %}
|
||||
- so-thehive
|
||||
- so-thehive-es
|
||||
- so-cortex
|
||||
{%- endif %}
|
||||
{%- if PLAYBOOK != 0 %}
|
||||
{%- if PLAYBOOK != '0' %}
|
||||
- so-playbook
|
||||
- so-navigator
|
||||
{%- endif %}
|
||||
{%- if FREQSERVER != 0 %}
|
||||
{%- if FREQSERVER != '0' %}
|
||||
- so-freqserver
|
||||
{%- endif %}
|
||||
{%- if DOMAINSTATS != 0 %}
|
||||
{%- if DOMAINSTATS != '0' %}
|
||||
- so-domainstats
|
||||
{%- endif %}
|
||||
master:
|
||||
@@ -149,28 +149,28 @@ master:
|
||||
- so-kibana
|
||||
- so-elastalert
|
||||
- so-filebeat
|
||||
{%- if OSQUERY != 0 %}
|
||||
{%- if OSQUERY != '0' %}
|
||||
- so-mysql
|
||||
- so-fleet
|
||||
- so-redis
|
||||
{%- endif %}
|
||||
{%- if WAZUH != 0 %}
|
||||
{%- if WAZUH != '0' %}
|
||||
- so-wazuh
|
||||
{%- endif %}
|
||||
- so-soctopus
|
||||
{%- if THEHIVE != 0 %}
|
||||
{%- if THEHIVE != '0' %}
|
||||
- so-thehive
|
||||
- so-thehive-es
|
||||
- so-cortex
|
||||
{%- endif %}
|
||||
{%- if PLAYBOOK != 0 %}
|
||||
{%- if PLAYBOOK != '0' %}
|
||||
- so-playbook
|
||||
- so-navigator
|
||||
{%- endif %}
|
||||
{%- if FREQSERVER != 0 %}
|
||||
{%- if FREQSERVER != '0' %}
|
||||
- so-freqserver
|
||||
{%- endif %}
|
||||
{%- if DOMAINSTATS != 0 %}
|
||||
{%- if DOMAINSTATS != '0' %}
|
||||
- so-domainstats
|
||||
{%- endif %}
|
||||
parser_node:
|
||||
@@ -190,7 +190,7 @@ search_node:
|
||||
- so-elasticsearch
|
||||
- so-curator
|
||||
- so-filebeat
|
||||
{%- if WAZUH != 0 %}
|
||||
{%- if WAZUH != '0' %}
|
||||
- so-wazuh
|
||||
{%- endif %}
|
||||
sensor:
|
||||
@@ -213,3 +213,4 @@ warm_node:
|
||||
- so-influxdb
|
||||
- so-grafana
|
||||
- so-elasticsearch
|
||||
|
||||
@@ -191,7 +191,7 @@ main() {
|
||||
printf "\n"
|
||||
printf "${focus_color}%b\e[0m" "Checking container statuses\n\n"
|
||||
|
||||
local num_containers=${#docker_raw_list[@]}
|
||||
local num_containers=${#container_name_list[@]}
|
||||
|
||||
for i in $(seq 0 $(($num_containers - 1 ))); do
|
||||
print_line ${container_name_list[$i]} ${container_state_list[$i]}
|
||||
|
||||
Reference in New Issue
Block a user