Update defaults.map.jinja

This commit is contained in:
Josh Patterson
2023-02-27 15:39:03 -05:00
committed by GitHub
parent 8632606a24
commit cbcd3c9dd9

View File

@@ -2,11 +2,10 @@
{% from 'vars/globals.map.jinja' import GLOBALS %} {% from 'vars/globals.map.jinja' import GLOBALS %}
{% from 'docker/docker.map.jinja' import DOCKER -%} {% from 'docker/docker.map.jinja' import DOCKER -%}
{% set INFLUXDB_TOKEN = salt['pillar.get']('secrets:influx_token') %} {% set INFLUXDB_TOKEN = salt['pillar.get']('secrets:influx_token') %}
{% set METRICS_LINK = '' %}
{% if salt['docker.exists']('so-influxdb') %} {% if salt['docker.exists']('so-influxdb') %}
{% if salt['docker.pid']('so-influxdb') > 0 %} {% if salt['docker.pid']('so-influxdb') > 0 %}
{% set METRICS_LINK = salt['cmd.run']('so-influxdb-manage dashboardpath "Security Onion Performance"') %} {% set METRICS_LINK = salt['cmd.run']('so-influxdb-manage dashboardpath "Security Onion Performance"') %}
{% else %}
{% set METRICS_LINK = '' %}
{% endif %} {% endif %}
{% endif %} {% endif %}