mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
place searchnode role with node where referenced
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
{{ append_containers('static', 'broversion', 'SURICATA') }}
|
{{ append_containers('static', 'broversion', 'SURICATA') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if role == 'searchnode' %}
|
{% if role == 'node' %}
|
||||||
{{ append_containers('master', 'wazuh', 0) }}
|
{{ append_containers('master', 'wazuh', 0) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% if grains['role'] in ['so-node', 'so-searchnode', 'so-heavynode'] %}
|
{% if grains['role'] in ['so-node', 'so-heavynode'] %}
|
||||||
{%- set elasticsearch = salt['pillar.get']('node:mainip', '') -%}
|
{%- set elasticsearch = salt['pillar.get']('node:mainip', '') -%}
|
||||||
{% elif grains['role'] in ['so-eval', 'so-mastersearch', 'so-standalone'] %}
|
{% elif grains['role'] in ['so-eval', 'so-mastersearch', 'so-standalone'] %}
|
||||||
{%- set elasticsearch = salt['pillar.get']('master:mainip', '') -%}
|
{%- set elasticsearch = salt['pillar.get']('master:mainip', '') -%}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.2.2') %}
|
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.2.2') %}
|
||||||
{% set MASTER = salt['grains.get']('master') %}
|
{% set MASTER = salt['grains.get']('master') %}
|
||||||
{% if grains['role'] in ['so-searchnode', 'so-eval', 'so-node', 'so-mastersearch', 'so-heavynode', 'so-standalone'] %}
|
{% if grains['role'] in ['so-eval', 'so-node', 'so-mastersearch', 'so-heavynode', 'so-standalone'] %}
|
||||||
# Curator
|
# Curator
|
||||||
# Create the group
|
# Create the group
|
||||||
curatorgroup:
|
curatorgroup:
|
||||||
|
|||||||
@@ -623,7 +623,7 @@
|
|||||||
# # you can add username and password to your url to use basic authentication:
|
# # you can add username and password to your url to use basic authentication:
|
||||||
# # servers = ["http://user:pass@localhost:9200"]
|
# # servers = ["http://user:pass@localhost:9200"]
|
||||||
servers = ["http://{{ MASTER }}:9200"]
|
servers = ["http://{{ MASTER }}:9200"]
|
||||||
{% elif grains['role'] in ['so-searchnode', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %}
|
{% elif grains['role'] in ['so-node', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %}
|
||||||
[[inputs.elasticsearch]]
|
[[inputs.elasticsearch]]
|
||||||
servers = ["http://{{ NODEIP }}:9200"]
|
servers = ["http://{{ NODEIP }}:9200"]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user