mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Merge pull request #128 from weslambert/master
only configure Telegraf if Grafana enabled
This commit is contained in:
@@ -141,6 +141,8 @@ so-core:
|
|||||||
- watch:
|
- watch:
|
||||||
- file: /opt/so/conf/nginx/nginx.conf
|
- file: /opt/so/conf/nginx/nginx.conf
|
||||||
|
|
||||||
|
# If master or eval, install Grafana/Telegraf/Influx
|
||||||
|
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' and GRAFANA == 1 %}
|
||||||
# Add Telegraf to monitor all the things.
|
# Add Telegraf to monitor all the things.
|
||||||
tgraflogdir:
|
tgraflogdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
@@ -213,9 +215,6 @@ so-telegraf:
|
|||||||
- /opt/so/conf/telegraf/etc/telegraf.conf
|
- /opt/so/conf/telegraf/etc/telegraf.conf
|
||||||
- /opt/so/conf/telegraf/scripts
|
- /opt/so/conf/telegraf/scripts
|
||||||
|
|
||||||
# If its a master or eval lets install the back end for now
|
|
||||||
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' and GRAFANA == 1 %}
|
|
||||||
|
|
||||||
# Influx DB
|
# Influx DB
|
||||||
influxconfdir:
|
influxconfdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
|
|||||||
Reference in New Issue
Block a user