Common Module - Add grafana support

This commit is contained in:
Mike Reeves
2018-11-18 12:04:32 -05:00
parent 39602f3ef8
commit a0607f13e5

View File

@@ -166,6 +166,13 @@ so-telegraf:
# If its a master or eval lets install the back end for now
{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
# Influx DB
influxconfdir:
file.directory:
- name: /opt/so/conf/influxdb/etc
- makedirs: True
influxdbdir:
file.directory:
- name: /nsm/influxdb
@@ -176,8 +183,20 @@ so-telegraf:
- image: soshybridhunter/so-influxdb:HH1.0.4
- hostname: influxdb
- binds:
- /opt/so/conf/influxdb/etc:/etc/influxdb/influxdb.conf:ro
- /nsm/influxdb:/var/lib/influxdb:rw
- environment:
- bootstrap.memory_lock=true
- port_bindings:
- 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 %}