create node_config measurement for nodes to be used for grafana dashboard vars

This commit is contained in:
m0duspwnens
2021-07-08 11:18:25 -04:00
parent 35f10518b2
commit 20360d0bb0
4 changed files with 18 additions and 21 deletions

View File

@@ -0,0 +1,7 @@
{
"role": "{{ grains.id.split('_') | last }}",
"manint": "{{ salt['pillar.get']('host:mainint', '') }}",
{%- if grains.role in ['so-standalone', 'so-eval', 'so-sensor', 'so-heavynode', ] %}
"monint": "{{ salt['pillar.get']('sensor:interface', '') }}"
{% endif -%}
}