mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
heavynode
This commit is contained in:
4
pillar/logstash/master.sls
Normal file
4
pillar/logstash/master.sls
Normal file
@@ -0,0 +1,4 @@
|
||||
logstash:
|
||||
pipelines:
|
||||
master:
|
||||
config: "/usr/share/logstash/pipelines/master/*.conf"
|
||||
@@ -20,6 +20,9 @@ base:
|
||||
- auth
|
||||
- minions.{{ grains.id }}
|
||||
|
||||
'G@role:so-master':
|
||||
- logstash.master
|
||||
|
||||
'G@role:so-eval':
|
||||
- static
|
||||
- firewall.*
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
#
|
||||
# path.config:
|
||||
# /etc/logstash/conf.d is mapped to /usr/share/logstash/pipeline in the Docker image
|
||||
{% if grains.role != 'so-mastersearch' and grains.role != 'so-heavynode' %}
|
||||
{% if grains.role != 'so-mastersearch' and grains.role != 'so-heavynode' and grains.role != 'so-master' %}
|
||||
path.config: /usr/share/logstash/pipeline.enabled/*.conf
|
||||
{% else %}
|
||||
#path.config: /usr/share/logstash/pipeline.enabled/*.conf
|
||||
|
||||
@@ -155,7 +155,7 @@ lscustsync:
|
||||
lsconfsync:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/logstash/conf.enabled.txt
|
||||
{% if grains.role == 'so-mastersearch' %}
|
||||
{% if grains.role == 'so-mastersearch' or grains.role == 'so-heavynode' %}
|
||||
- source: salt://logstash/conf/conf.enabled.txt.so-master
|
||||
{% else %}
|
||||
- source: salt://logstash/conf/conf.enabled.txt.{{ nodetype }}
|
||||
|
||||
Reference in New Issue
Block a user