mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Salt Top - New pillar match
This commit is contained in:
21
salt/top.sls
21
salt/top.sls
@@ -1,5 +1,3 @@
|
|||||||
{% set nodetype = salt['pillar_get']('node:node_type', 'storage') %}
|
|
||||||
|
|
||||||
base:
|
base:
|
||||||
'G@role:so-sensor':
|
'G@role:so-sensor':
|
||||||
- common
|
- common
|
||||||
@@ -22,22 +20,29 @@ base:
|
|||||||
- elasticsearch
|
- elasticsearch
|
||||||
- logstash
|
- logstash
|
||||||
|
|
||||||
'G@role:so-node':
|
# Storage node logic
|
||||||
{%- if nodetype == 'parser' %}
|
|
||||||
|
'node_type:parser':
|
||||||
|
- match: pillar
|
||||||
- common
|
- common
|
||||||
- logstash
|
- logstash
|
||||||
{% elif nodetype == 'hot' %}
|
|
||||||
|
'node_type:hot':
|
||||||
|
- match: pillar
|
||||||
- common
|
- common
|
||||||
- logstash
|
- logstash
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
{% elif nodetype == 'warm' %}
|
|
||||||
|
'node_type:warm':
|
||||||
|
- match: pillar
|
||||||
- common
|
- common
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
{% elif nodetype == 'storage' %}
|
|
||||||
|
'node_type:storage':
|
||||||
|
- match: pillar
|
||||||
- common
|
- common
|
||||||
- logstash
|
- logstash
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
'G@role:mastersensor':
|
'G@role:mastersensor':
|
||||||
- common
|
- common
|
||||||
|
|||||||
Reference in New Issue
Block a user