mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 02:32:46 +01:00
Update so-minion to include running kafka.nodes state to ensure nodeid is generated for new brokers Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
19 lines
882 B
Plaintext
19 lines
882 B
Plaintext
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
|
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
|
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
|
# Elastic License 2.0.
|
|
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
|
{% if GLOBALS.pipeline == "KAFKA" %}
|
|
{% from 'kafka/nodes.map.jinja' import COMBINED_KAFKANODES %}
|
|
|
|
{# Store kafka pillar in a file rather than memory where values could be lost. Kafka does not support nodeid's changing #}
|
|
write_kafka_pillar_yaml:
|
|
file.managed:
|
|
- name: /opt/so/saltstack/local/pillar/kafka/nodes.sls
|
|
- mode: 644
|
|
- user: socore
|
|
- source: salt://kafka/files/managed_node_pillar.jinja
|
|
- template: jinja
|
|
- context:
|
|
COMBINED_KAFKANODES: {{ COMBINED_KAFKANODES }}
|
|
{% endif %} |