Update defaults.map.jinja

This commit is contained in:
Josh Patterson
2023-02-27 15:37:35 -05:00
committed by GitHub
parent 1692970789
commit 8632606a24

View File

@@ -1,11 +1,13 @@
{% 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 METRICS_LINK = '' %}
{% set INFLUXDB_TOKEN = salt['pillar.get']('secrets:influx_token') %}
{% 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"') %}
{% else %}
{% set METRICS_LINK = '' %}
{% endif %}
{% endif %}