handle multile nodetpes and uid

This commit is contained in:
m0duspwnens
2021-07-20 14:04:28 -04:00
parent 4bb350d37d
commit 6038ebb705
2 changed files with 3 additions and 1 deletions

View File

@@ -54,6 +54,8 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "Detailed {{ NODETYPE }}", "title": "Detailed {{ NODETYPE }}",
{% if grains.role in 'so-standalone' %}
"uid": "{{ UID }}", "uid": "{{ UID }}",
{% endif %}
"version": 1 "version": 1
} }

View File

@@ -87,7 +87,7 @@ grafana-config-files:
- makedirs: True - makedirs: True
{% for nodeType in nodeTypes %} {% for nodeType in nodeTypes %}
common-standalone-dashboard: detailed-{{nodeType}}-dashboard:
file.managed: file.managed:
- name: /opt/so/conf/grafana/grafana_dashboards/detailed/{{nodeType}}.json - name: /opt/so/conf/grafana/grafana_dashboards/detailed/{{nodeType}}.json
- user: 939 - user: 939