mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
fix some happy mistakes - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/619
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
base:
|
||||
'*':
|
||||
- patch.needs_restarting
|
||||
- docker.config
|
||||
|
||||
'*_eval or *_helix or *_heavynode or *_sensor':
|
||||
- match: compound
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
'so-kratos',
|
||||
'so-idstools',
|
||||
'so-elasticsearch',
|
||||
'so-logstash',
|
||||
'so-kibana',
|
||||
'so-steno',
|
||||
'so-suricata',
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{% set role = grains.id.split('_') | last %}
|
||||
{% from 'common/map/'~ role ~'.map.jinja' import docker with context %}
|
||||
{% from 'common/maps/'~ role ~'.map.jinja' import docker with context %}
|
||||
|
||||
# Check if the service is enabled and append it's required containers
|
||||
# to the list predefined by the role / minion id affix
|
||||
{% macro append_containers(pillar_name, k, compare )%}
|
||||
{% if salt['pillar.get'](pillar_name~':'~k, {}) != %}
|
||||
{% if salt['pillar.get'](pillar_name~':'~k, {}) != compare %}
|
||||
{% from 'common/maps/'~k~'.map.jinja' import docker as d with context %}
|
||||
{% for li in d['containers'] %}
|
||||
{{ docker['containers'].append(li) }}
|
||||
@@ -19,13 +19,13 @@
|
||||
},grain='id', merge=salt['pillar.get']('docker')) %}
|
||||
|
||||
{% if role == 'eval' %}
|
||||
{{ append_containers('master', 'grafana', '0') }}
|
||||
{{ append_containers('static', 'fleet_master', '0') }}
|
||||
{{ append_containers('master', 'wazuh', '0') }}
|
||||
{{ append_containers('master', 'thehive', '0') }}
|
||||
{{ append_containers('master', 'playbook', '0') }}
|
||||
{{ append_containers('master', 'freq', '0') }}
|
||||
{{ append_containers('master', 'domainstats', '0') }}
|
||||
{{ append_containers('master', 'grafana', 0) }}
|
||||
{{ append_containers('static', 'fleet_master', 0) }}
|
||||
{{ append_containers('master', 'wazuh', 0) }}
|
||||
{{ append_containers('master', 'thehive', 0) }}
|
||||
{{ append_containers('master', 'playbook', 0) }}
|
||||
{{ append_containers('master', 'freq', 0) }}
|
||||
{{ append_containers('master', 'domainstats', 0) }}
|
||||
{% endif %}
|
||||
|
||||
{% if role == 'heavynode' %}
|
||||
@@ -33,27 +33,27 @@
|
||||
{% endif %}
|
||||
|
||||
{% if role == 'mastersearch' %}
|
||||
{{ append_containers('master', 'grafana', '0') }}
|
||||
{{ append_containers('static', 'fleet_master, '0'') }}
|
||||
{{ append_containers('master', 'wazuh', '0') }}
|
||||
{{ append_containers('master', 'thehive', '0') }}
|
||||
{{ append_containers('master', 'playbook', '0') }}
|
||||
{{ append_containers('master', 'freq', '0') }}
|
||||
{{ append_containers('master', 'domainstats', '0') }}
|
||||
{{ append_containers('master', 'grafana', 0) }}
|
||||
{{ append_containers('static', 'fleet_master', 0) }}
|
||||
{{ append_containers('master', 'wazuh', 0) }}
|
||||
{{ append_containers('master', 'thehive', 0) }}
|
||||
{{ append_containers('master', 'playbook', 0) }}
|
||||
{{ append_containers('master', 'freq', 0) }}
|
||||
{{ append_containers('master', 'domainstats', 0) }}
|
||||
{% endif %}
|
||||
|
||||
{% if role == 'master' %}
|
||||
{{ append_containers('master', 'grafana', '0') }}
|
||||
{{ append_containers('static', 'fleet_master', '0') }}
|
||||
{{ append_containers('master', 'wazuh', '0') }}
|
||||
{{ append_containers('master', 'thehive', '0') }}
|
||||
{{ append_containers('master', 'playbook', '0') }}
|
||||
{{ append_containers('master', 'freq', '0') }}
|
||||
{{ append_containers('master', 'domainstats', '0') }}
|
||||
{{ append_containers('master', 'grafana', 0) }}
|
||||
{{ append_containers('static', 'fleet_master', 0) }}
|
||||
{{ append_containers('master', 'wazuh', 0) }}
|
||||
{{ append_containers('master', 'thehive', 0) }}
|
||||
{{ append_containers('master', 'playbook', 0) }}
|
||||
{{ append_containers('master', 'freq', 0) }}
|
||||
{{ append_containers('master', 'domainstats', 0) }}
|
||||
{% endif %}
|
||||
|
||||
{% if role == 'searchnode' %}
|
||||
{{ append_containers('master', 'wazuh', '0') }}
|
||||
{{ append_containers('master', 'wazuh', 0) }}
|
||||
{% endif %}
|
||||
|
||||
{% if role == 'sensor' %}
|
||||
|
||||
Reference in New Issue
Block a user