mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 11:12:51 +01:00
use globals.is_manager
This commit is contained in:
@@ -56,7 +56,7 @@ so-telegraf:
|
|||||||
- /opt/so/log/sostatus:/var/log/sostatus:ro
|
- /opt/so/log/sostatus:/var/log/sostatus:ro
|
||||||
- /opt/so/log/salt:/var/log/salt:ro
|
- /opt/so/log/salt:/var/log/salt:ro
|
||||||
- /opt/so/log/agents:/var/log/agents:ro
|
- /opt/so/log/agents:/var/log/agents:ro
|
||||||
{% if GLOBALS.role in ['so-standalone', 'so-manager', 'so-managersearch', 'so-heavynode', 'so-eval', 'so-import'] %}
|
{% if GLOBALS.is_manager or GLOBALS.role == 'so-heavynode' %}
|
||||||
- /opt/so/conf/telegraf/etc/escurl.config:/etc/telegraf/elasticsearch.config:ro
|
- /opt/so/conf/telegraf/etc/escurl.config:/etc/telegraf/elasticsearch.config:ro
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if DOCKER.containers['so-telegraf'].custom_bind_mounts %}
|
{% if DOCKER.containers['so-telegraf'].custom_bind_mounts %}
|
||||||
|
|||||||
@@ -192,7 +192,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# # Read stats from one or more Elasticsearch servers or clusters
|
# # Read stats from one or more Elasticsearch servers or clusters
|
||||||
{%- if grains['role'] in ['so-manager', 'so-eval', 'so-managersearch', 'so-standalone', 'so-heavynode', 'so-import'] %}
|
{%- if GLOBALS.is_manager or GLOBALS.role == 'so-heavynode' %}
|
||||||
[[inputs.elasticsearch]]
|
[[inputs.elasticsearch]]
|
||||||
servers = ["https://{{ NODEIP }}:9200"]
|
servers = ["https://{{ NODEIP }}:9200"]
|
||||||
cluster_stats = true
|
cluster_stats = true
|
||||||
@@ -325,7 +325,7 @@
|
|||||||
[[inputs.net]]
|
[[inputs.net]]
|
||||||
|
|
||||||
# Scripts run every 30s||TELEGRAFMERGED.config.interval - ES index script doesn't need to run as frequently
|
# Scripts run every 30s||TELEGRAFMERGED.config.interval - ES index script doesn't need to run as frequently
|
||||||
{%- if grains.role in ['so-standalone', 'so-manager', 'so-managersearch', 'so-heavynode', 'so-eval', 'so-import'] %}
|
{%- if GLOBALS.is_manager or GLOBALS.role == 'so-heavynode' %}
|
||||||
[[ inputs.exec ]]
|
[[ inputs.exec ]]
|
||||||
commands = [
|
commands = [
|
||||||
"/scripts/esindexsize.sh"
|
"/scripts/esindexsize.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user