[fix] Remove containers from so-status for roles that don't use them

This commit is contained in:
William Wernert
2020-02-10 16:59:06 -05:00
parent 776d5c3fcc
commit e07029bf6b

View File

@@ -1,27 +1,31 @@
{%- set OSQUERY = salt['pillar.get']('master:osquery', '0') -%} {% set OSQUERY = salt['pillar.get']('master:osquery', '0') %}
{%- set WAZUH = salt['pillar.get']('master:wazuh', '0') -%} {% set WAZUH = salt['pillar.get']('master:wazuh', '0') %}
{%- set THEHIVE = salt['pillar.get']('master:thehive', '0') -%} {% set THEHIVE = salt['pillar.get']('master:thehive', '0') %}
{%- set PLAYBOOK = salt['pillar.get']('master:playbook', '0') -%} {% set PLAYBOOK = salt['pillar.get']('master:playbook', '0') %}
{%- set FREQSERVER = salt['pillar.get']('master:freq', '0') -%} {% set FREQSERVER = salt['pillar.get']('master:freq', '0') %}
{%- set DOMAINSTATS = salt['pillar.get']('master:domainstats', '0') -%} {% set DOMAINSTATS = salt['pillar.get']('master:domainstats', '0') %}
{%- set BROVER = salt['pillar.get']('static:broversion', 'COMMUNITY') -%} {% set BROVER = salt['pillar.get']('static:broversion', 'COMMUNITY') %}
{% set GRAFANA = salt['pillar.get']('master:grafana', '0') %}
eval: eval:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
{% if GRAFANA == '1' %}
- so-influxdb - so-influxdb
- so-grafana - so-grafana
{% endif %}
- so-dockerregistry - so-dockerregistry
- so-sensoroni - so-sensoroni
- so-idstools - so-idstools
- so-auth-api - so-auth-api
- so-auth-ui - so-auth-ui
{%- if OSQUERY != '0' %} {% if OSQUERY != '0' %}
- so-mysql - so-mysql
- so-fleet - so-fleet
- so-redis - so-redis
{%- endif %} {% endif %}
- so-elasticsearch - so-elasticsearch
- so-logstash - so-logstash
- so-kibana - so-kibana
@@ -30,31 +34,29 @@ eval:
- so-zeek - so-zeek
- so-curator - so-curator
- so-elastalert - so-elastalert
{%- if WAZUH != '0' %} {% if WAZUH != '0' %}
- so-wazuh - so-wazuh
{%- endif %} {% endif %}
- so-soctopus - so-soctopus
{%- if THEHIVE != '0' %} {% if THEHIVE != '0' %}
- so-thehive - so-thehive
- so-thehive-es - so-thehive-es
- so-cortex - so-cortex
{%- endif %} {% endif %}
{%- if PLAYBOOK != '0' %} {% if PLAYBOOK != '0' %}
- so-playbook - so-playbook
- so-navigator - so-navigator
{%- endif %} {% endif %}
{%- if FREQSERVER != '0' %} {% if FREQSERVER != '0' %}
- so-freqserver - so-freqserver
{%- endif %} {% endif %}
{%- if DOMAINSTATS != '0' %} {% if DOMAINSTATS != '0' %}
- so-domainstats - so-domainstats
{%- endif %} {% endif %}
heavy_node: heavy_node:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-redis - so-redis
- so-logstash - so-logstash
- so-elasticsearch - so-elasticsearch
@@ -63,19 +65,17 @@ heavy_node:
- so-suricata - so-suricata
- so-wazuh - so-wazuh
- so-filebeat - so-filebeat
{%- if BROVER != 'SURICATA' %} {% if BROVER != 'SURICATA' %}
- so-zeek - so-zeek
{%- endif %} {% endif %}
helix: helix:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-idstools - so-idstools
- so-steno - so-steno
- so-zeek - so-zeek
- so-zeek
- so-redis - so-redis
- so-logstash - so-logstash
- so-filebeat - so-filebeat
@@ -83,8 +83,6 @@ hot_node:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-logstash - so-logstash
- so-elasticsearch - so-elasticsearch
- so-curator - so-curator
@@ -92,8 +90,6 @@ master_search:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-sensoroni - so-sensoroni
- so-acng - so-acng
- so-idstools - so-idstools
@@ -107,37 +103,39 @@ master_search:
- so-elastalert - so-elastalert
- so-filebeat - so-filebeat
- so-soctopus - so-soctopus
{%- if OSQUERY != '0' %} {% if OSQUERY != '0' %}
- so-mysql - so-mysql
- so-fleet - so-fleet
- so-redis - so-redis
{%- endif %} {% endif %}
{%- if WAZUH != '0' %} {% if WAZUH != '0' %}
- so-wazuh - so-wazuh
{%- endif %} {% endif %}
- so-soctopus - so-soctopus
{%- if THEHIVE != '0' %} {% if THEHIVE != '0' %}
- so-thehive - so-thehive
- so-thehive-es - so-thehive-es
- so-cortex - so-cortex
{%- endif %} {% endif %}
{%- if PLAYBOOK != '0' %} {% if PLAYBOOK != '0' %}
- so-playbook - so-playbook
- so-navigator - so-navigator
{%- endif %} {% endif %}
{%- if FREQSERVER != '0' %} {% if FREQSERVER != '0' %}
- so-freqserver - so-freqserver
{%- endif %} {% endif %}
{%- if DOMAINSTATS != '0' %} {% if DOMAINSTATS != '0' %}
- so-domainstats - so-domainstats
{%- endif %} {% endif %}
master: master:
containers: containers:
- so-dockerregistry - so-dockerregistry
- so-core - so-core
- so-telegraf - so-telegraf
{% if GRAFANA == '1' %}
- so-influxdb - so-influxdb
- so-grafana - so-grafana
{% endif %}
- so-sensoroni - so-sensoroni
- so-acng - so-acng
- so-idstools - so-idstools
@@ -149,68 +147,64 @@ master:
- so-kibana - so-kibana
- so-elastalert - so-elastalert
- so-filebeat - so-filebeat
{%- if OSQUERY != '0' %} {% if OSQUERY != '0' %}
- so-mysql - so-mysql
- so-fleet - so-fleet
- so-redis - so-redis
{%- endif %} {% endif %}
{%- if WAZUH != '0' %} {% if WAZUH != '0' %}
- so-wazuh - so-wazuh
{%- endif %} {% endif %}
- so-soctopus - so-soctopus
{%- if THEHIVE != '0' %} {% if THEHIVE != '0' %}
- so-thehive - so-thehive
- so-thehive-es - so-thehive-es
- so-cortex - so-cortex
{%- endif %} {% endif %}
{%- if PLAYBOOK != '0' %} {% if PLAYBOOK != '0' %}
- so-playbook - so-playbook
- so-navigator - so-navigator
{%- endif %} {% endif %}
{%- if FREQSERVER != '0' %} {% if FREQSERVER != '0' %}
- so-freqserver - so-freqserver
{%- endif %} {% endif %}
{%- if DOMAINSTATS != '0' %} {% if DOMAINSTATS != '0' %}
- so-domainstats - so-domainstats
{%- endif %} {% endif %}
parser_node: parser_node:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-logstash - so-logstash
search_node: search_node:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-logstash - so-logstash
- so-elasticsearch - so-elasticsearch
- so-curator - so-curator
- so-filebeat - so-filebeat
{%- if WAZUH != '0' %} {% if WAZUH != '0' %}
- so-wazuh - so-wazuh
{%- endif %} {% endif %}
sensor: sensor:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-steno - so-steno
- so-suricata - so-suricata
{%- if BROVER != 'SURICATA' %} {% if BROVER != 'SURICATA' %}
- so-zeek - so-zeek
{%- endif %} {% endif %}
- so-wazuh - so-wazuh
- so-filebeat - so-filebeat
warm_node: warm_node:
containers: containers:
- so-core - so-core
- so-telegraf - so-telegraf
- so-influxdb
- so-grafana
- so-elasticsearch - so-elasticsearch