mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
handle multile nodetpes and uid
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user