Common Module - Change Grafana init

This commit is contained in:
Mike Reeves
2018-11-21 14:21:52 -05:00
parent a136e112c7
commit 1cae809885
2 changed files with 6 additions and 6 deletions

View File

@@ -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: