mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 03:02:58 +01:00
15 lines
777 B
Django/Jinja
15 lines
777 B
Django/Jinja
{% from 'vars/sensor.map.jinja' import ROLE_GLOBALS %}
|
|
{% import_yaml 'zeek/defaults.yaml' as ZEEKDEFAULTS with context %}
|
|
{% set ZEEKMERGED = salt['pillar.get']('zeek', ZEEKDEFAULTS.zeek, merge=True) %}
|
|
{% do ZEEKMERGED.config.node.update({'interface': ROLE_GLOBALS.sensor.interface}) %}
|
|
|
|
{# we have to add the @ sign for the config since we remove it from defaults for the UI #}
|
|
{% if ZEEKMERGED.config.local.load is defined %}
|
|
{% set LOCALLOAD = ZEEKMERGED.config.local.pop('load') %}
|
|
{% do ZEEKMERGED.config.local.update({'@load': LOCALLOAD}) %}
|
|
{% endif %}
|
|
{% if ZEEKMERGED.config.local['load-sigs'] is defined %}
|
|
{% set LOCALLOADSIGS = ZEEKMERGED.config.local.pop('load-sigs') %}
|
|
{% do ZEEKMERGED.config.local.update({'@load-sigs': LOCALLOADSIGS}) %}
|
|
{% endif %}
|