mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
rename EXTRA_NODES to LOGSTASH_NODES AND REDIS_NODES
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
{% set MANAGER = salt['grains.get']('master') %}
|
||||
{% from 'filebeat/map.jinja' import THIRDPARTY with context %}
|
||||
{% from 'filebeat/map.jinja' import SO with context %}
|
||||
{% from 'filebeat/map.jinja' import EXTRA_HOSTS with context %}
|
||||
{% from 'filebeat/map.jinja' import LOGSTASH_NODES with context %}
|
||||
{% set ES_INCLUDED_NODES = ['so-eval', 'so-standalone', 'so-managersearch', 'so-node', 'so-heavynode', 'so-import'] %}
|
||||
|
||||
include:
|
||||
@@ -109,7 +109,7 @@ so-filebeat:
|
||||
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-filebeat:{{ VERSION }}
|
||||
- hostname: so-filebeat
|
||||
- user: root
|
||||
- extra_hosts: {{ EXTRA_HOSTS }}
|
||||
- extra_hosts: {{ LOGSTASH_NODES }}
|
||||
- binds:
|
||||
- /nsm:/nsm:ro
|
||||
- /opt/so/log/filebeat:/usr/share/filebeat/logs:rw
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{#% set SO = salt['pillar.get']('filebeat:third_party_filebeat', default=SODEFAULTS.third_party_filebeat, merge=True) %#}
|
||||
|
||||
{% set role = grains.role %}
|
||||
{% set EXTRA_HOSTS = [] %}
|
||||
{% set LOGSTASH_NODES = [] %}
|
||||
{% set mainint = salt['pillar.get']('host:mainint') %}
|
||||
{% set localhostip = salt['grains.get']('ip_interfaces').get(mainint)[0] %}
|
||||
{% if role in ['so-sensor', 'so-fleet', 'so-node' ] %}
|
||||
@@ -14,10 +14,10 @@
|
||||
{% for node_type, node_details in node_data.items() | sort %}
|
||||
{% if node_type in ['manager', 'managersearch', 'standalone', 'receiver' ] %}
|
||||
{% for hostname in node_data[node_type].keys() %}
|
||||
{% do EXTRA_HOSTS.append({hostname:node_details[hostname].ip}) %}
|
||||
{% do LOGSTASH_NODES.append({hostname:node_details[hostname].ip}) %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% do EXTRA_HOSTS.append({grains.host:localhostip}) %}
|
||||
{% do LOGSTASH_NODES.append({grains.host:localhostip}) %}
|
||||
{% endif %}
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
{% set EXTRAHOSTHOSTNAME = MANAGER %}
|
||||
{% set EXTRAHOSTIP = MANAGERIP %}
|
||||
{% endif #}
|
||||
{% from 'logstash/map.jinja' import EXTRA_HOSTS with context %}
|
||||
{% from 'logstash/map.jinja' import REDIS_NODES with context %}
|
||||
|
||||
include:
|
||||
- ssl
|
||||
@@ -156,7 +156,7 @@ so-logstash:
|
||||
- hostname: so-logstash
|
||||
- name: so-logstash
|
||||
- user: logstash
|
||||
- extra_hosts: {{ EXTRA_HOSTS }}
|
||||
- extra_hosts: {{ REDIS_NODES }}
|
||||
- environment:
|
||||
- LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }}
|
||||
- port_bindings:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% set role = grains.role %}
|
||||
{% set EXTRA_HOSTS = [] %}
|
||||
{% set REDIS_NODES = [] %}
|
||||
{% set mainint = salt['pillar.get']('host:mainint') %}
|
||||
{% set localhostip = salt['grains.get']('ip_interfaces').get(mainint)[0] %}
|
||||
{% if role in ['so-node'] %}
|
||||
@@ -7,10 +7,10 @@
|
||||
{% for node_type, node_details in node_data.items() | sort %}
|
||||
{% if node_type in ['manager', 'managersearch', 'standalone', 'receiver' ] %}
|
||||
{% for hostname in node_data[node_type].keys() %}
|
||||
{% do EXTRA_HOSTS.append({hostname:node_details[hostname].ip}) %}
|
||||
{% do REDIS_NODES.append({hostname:node_details[hostname].ip}) %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% do EXTRA_HOSTS.append({grains.host:localhostip}) %}
|
||||
{% do REDIS_NODES.append({grains.host:localhostip}) %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user