m0duspwnens
2021-08-23 13:08:11 -04:00
parent 80f4d03254
commit f87cf123b0

View File

@@ -19,7 +19,7 @@
{% else %} {% else %}
{# Grab a unique listing of nodetypes that exists so that we create only the needed dashboards #} {# Grab a unique listing of nodetypes that exists so that we create only the needed dashboards #}
{% for dashboard in salt['cmd.shell']("ls /opt/so/saltstack/local/pillar/minions/|awk -F'_' {'print $2'}|awk -F'.' {'print $1'}").split() %} {% for dashboard in salt['cmd.shell']("ls /opt/so/saltstack/local/pillar/minions/|awk -F'_' {'print $2'}|awk -F'.' {'print $1'}").split() %}
{% if dashboard id ALLOWED_DASHBOARDS %} {% if dashboard in ALLOWED_DASHBOARDS %}
{% do DASHBOARDS.append(dashboard) %} {% do DASHBOARDS.append(dashboard) %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}