mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 11:42:50 +01:00
Common Module - Add grafana support
This commit is contained in:
@@ -166,6 +166,13 @@ so-telegraf:
|
|||||||
|
|
||||||
# If its a master or eval lets install the back end for now
|
# If its a master or eval lets install the back end for now
|
||||||
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
|
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
|
||||||
|
|
||||||
|
# Influx DB
|
||||||
|
influxconfdir:
|
||||||
|
file.directory:
|
||||||
|
- name: /opt/so/conf/influxdb/etc
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
influxdbdir:
|
influxdbdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /nsm/influxdb
|
- name: /nsm/influxdb
|
||||||
@@ -176,8 +183,20 @@ so-telegraf:
|
|||||||
- image: soshybridhunter/so-influxdb:HH1.0.4
|
- image: soshybridhunter/so-influxdb:HH1.0.4
|
||||||
- hostname: influxdb
|
- hostname: influxdb
|
||||||
- binds:
|
- binds:
|
||||||
|
- /opt/so/conf/influxdb/etc:/etc/influxdb/influxdb.conf:ro
|
||||||
- /nsm/influxdb:/var/lib/influxdb:rw
|
- /nsm/influxdb:/var/lib/influxdb:rw
|
||||||
- environment:
|
|
||||||
- bootstrap.memory_lock=true
|
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- 0.0.0.0:8086:8086
|
- 0.0.0.0:8086:8086
|
||||||
|
|
||||||
|
# Grafana all the things
|
||||||
|
so-grafana:
|
||||||
|
docker_container.running:
|
||||||
|
- image: soshybridhunter/so-grafana:HH1.0.4
|
||||||
|
- hostname: grafana
|
||||||
|
- binds:
|
||||||
|
- /nsm/grafana:/var/lib/grafana:rw
|
||||||
|
- environment:
|
||||||
|
- GF_SECURITY_ADMIN_PASSWORD=augusta
|
||||||
|
- port_bindings:
|
||||||
|
- 0.0.0.0:3000:3000
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user