mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix whitespace control
This commit is contained in:
@@ -322,27 +322,28 @@ output.logstash:
|
|||||||
|
|
||||||
# The Logstash hosts
|
# The Logstash hosts
|
||||||
hosts:
|
hosts:
|
||||||
{%- if grains.role in ['so-sensor', 'so-fleet', 'so-node'] -%}
|
{%- if grains.role in ['so-sensor', 'so-fleet', 'so-node'] %}
|
||||||
{% set LOGSTASH = namespace() -%}
|
{%- set LOGSTASH = namespace() %}
|
||||||
{% set LOGSTASH.count = 0 -%}
|
{%- set LOGSTASH.count = 0 %}
|
||||||
{% set LOGSTASH.loadbalance = false -%}
|
{%- set LOGSTASH.loadbalance = false %}
|
||||||
{% set node_data = salt['pillar.get']('logstash:nodes') -%}
|
{%- set node_data = salt['pillar.get']('logstash:nodes') %}
|
||||||
{% for node_type, node_details in node_data.items() | sort -%}
|
{%- for node_type, node_details in node_data.items() | sort -%}
|
||||||
{% if node_type in ['manager', 'managersearch', 'standalone', 'receiver' ] -%}
|
{%- if node_type in ['manager', 'managersearch', 'standalone', 'receiver' ] %}
|
||||||
{% for hostname in node_data[node_type].keys() -%}
|
{%- for hostname in node_data[node_type].keys() %}
|
||||||
{% set LOGSTASH.count = LOGSTASH.count + 1 %}
|
{%- set LOGSTASH.count = LOGSTASH.count + 1 %}
|
||||||
- "{{ hostname }}:5644" #{{ node_details[hostname].ip }}
|
- "{{ hostname }}:5644" #{{ node_details[hostname].ip }}
|
||||||
{%- endfor -%}
|
{%- endfor %}
|
||||||
{% endif -%}
|
{%- endif %}
|
||||||
{% if LOGSTASH.count > 1 -%}
|
{%- if LOGSTASH.count > 1 %}
|
||||||
{% set LOGSTASH.loadbalance = true -%}
|
{%- set LOGSTASH.loadbalance = true %}
|
||||||
{% endif -%}
|
{%- endif %}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
loadbalance: {{ LOGSTASH.loadbalance | lower }}
|
loadbalance: {{ LOGSTASH.loadbalance | lower }}
|
||||||
{% else -%}
|
{%- else %}
|
||||||
- "{{ grains.host }}:5644"
|
- "{{ grains.host }}:5644"
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
|
|
||||||
# Number of workers per Logstash host.
|
# Number of workers per Logstash host.
|
||||||
worker: {{ FBLSWORKERS }}
|
worker: {{ FBLSWORKERS }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user