mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Use global.pipeline for redis / kafka states
Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
global:
|
global:
|
||||||
pcapengine: STENO
|
pcapengine: STENO
|
||||||
|
pipeline: REDIS
|
||||||
@@ -37,6 +37,8 @@ global:
|
|||||||
advanced: True
|
advanced: True
|
||||||
pipeline:
|
pipeline:
|
||||||
description: Sets which pipeline technology for events to use. Currently only Redis is fully supported. Kafka is experimental and requires a Security Onion Pro license.
|
description: Sets which pipeline technology for events to use. Currently only Redis is fully supported. Kafka is experimental and requires a Security Onion Pro license.
|
||||||
|
regex: ^(REDIS|KAFKA)$
|
||||||
|
regexFailureMessage: You must enter either REDIS or KAFKA.
|
||||||
global: True
|
global: True
|
||||||
advanced: True
|
advanced: True
|
||||||
repo_host:
|
repo_host:
|
||||||
|
|||||||
@@ -4,9 +4,10 @@
|
|||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
{% from 'kafka/map.jinja' import KAFKAMERGED %}
|
{% from 'kafka/map.jinja' import KAFKAMERGED %}
|
||||||
|
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
{% if KAFKAMERGED.enabled %}
|
{% if GLOBALS.pipeline == "KAFKA" and KAFKAMERGED.enabled %}
|
||||||
- kafka.enabled
|
- kafka.enabled
|
||||||
{% else %}
|
{% else %}
|
||||||
- kafka.disabled
|
- kafka.disabled
|
||||||
|
|||||||
@@ -438,7 +438,8 @@ post_to_2.4.60() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_to_2.4.70() {
|
post_to_2.4.70() {
|
||||||
echo "Nothing to apply"
|
echo "Removing global.pipeline pillar configuration"
|
||||||
|
sed -i '/pipeline:/d' /opt/so/saltstack/local/pillar/global/soc_global.sls
|
||||||
POSTVERSION=2.4.70
|
POSTVERSION=2.4.70
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
# Elastic License 2.0.
|
# Elastic License 2.0.
|
||||||
|
|
||||||
{% from 'redis/map.jinja' import REDISMERGED %}
|
{% from 'redis/map.jinja' import REDISMERGED %}
|
||||||
{% from 'kafka/map.jinja' import KAFKAMERGED %}
|
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
{% if REDISMERGED.enabled and not KAFKAMERGED.enabled %}
|
{% if GLOBALS.pipeline == "REDIS" and REDISMERGED.enabled %}
|
||||||
- redis.enabled
|
- redis.enabled
|
||||||
{% else %}
|
{% else %}
|
||||||
- redis.disabled
|
- redis.disabled
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
{% set ROLE_GLOBALS = {} %}
|
|
||||||
@@ -1327,7 +1327,6 @@ create_global() {
|
|||||||
|
|
||||||
# Continue adding other details
|
# Continue adding other details
|
||||||
echo " imagerepo: '$IMAGEREPO'" >> $global_pillar_file
|
echo " imagerepo: '$IMAGEREPO'" >> $global_pillar_file
|
||||||
echo " pipeline: 'redis'" >> $global_pillar_file
|
|
||||||
echo " repo_host: '$HOSTNAME'" >> $global_pillar_file
|
echo " repo_host: '$HOSTNAME'" >> $global_pillar_file
|
||||||
echo " influxdb_host: '$HOSTNAME'" >> $global_pillar_file
|
echo " influxdb_host: '$HOSTNAME'" >> $global_pillar_file
|
||||||
echo " registry_host: '$HOSTNAME'" >> $global_pillar_file
|
echo " registry_host: '$HOSTNAME'" >> $global_pillar_file
|
||||||
|
|||||||
Reference in New Issue
Block a user