Merge branch 'setuperrors' of https://github.com/Security-Onion-Solutions/securityonion into setuperrors

This commit is contained in:
Mike Reeves
2023-02-28 09:41:10 -05:00

View File

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