mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Common Module - Change Grafana init
This commit is contained in:
@@ -245,7 +245,7 @@ grafanaconf:
|
||||
- source: salt://common/grafana/etc
|
||||
|
||||
{% if salt['pillar.get']('sensorstab', False) %}
|
||||
{%- for SN, SIP, MAININT, MONINT in salt['pillar.get']('sensorstab', {}).iteritems() %}}
|
||||
{%- for SN, SNDATA in salt['pillar.get']('sensorstab', {}).iteritems() %}
|
||||
dashboard-{{ SN }}:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/grafana/grafana_dashboards/{{ SN }}-Sensor.json
|
||||
@@ -254,13 +254,13 @@ dashboard-{{ SN }}:
|
||||
- template: jinja
|
||||
- source: salt://common/grafana/grafana_dashboards/sensor.json
|
||||
- defaults:
|
||||
- SERVERNAME: {{ SN }}
|
||||
- INT: {{ MAININT }}
|
||||
- MON: {{ MONINT }}
|
||||
SERVERNAME: {{ SN }}
|
||||
INT: {{ SNDATA.monint }}
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
# Install the docker. This needs to be behind nginx at some point
|
||||
so-grafana:
|
||||
docker_container.running:
|
||||
|
||||
Reference in New Issue
Block a user