mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Bro Salt Module - add endfor in node.cfg
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
{%- set interface = salt['pillar.get']('sensor:interface', '') %}
|
{%- set interface = salt['pillar.get']('sensor:interface', '') %}
|
||||||
|
|
||||||
{%- if salt['pillar.get']('sensor:bro_pins')|length > 1 %}
|
{%- if salt['pillar.get']('sensor:bro_pins')|length > 1 %}
|
||||||
{%- if salt['pillar.get']('sensor:bro_proxies'|length > 1) %}
|
{%- if salt['pillar.get']('sensor:bro_proxies'|length > 1) %}
|
||||||
{%- set proxies = salt['pillar.get']('sensor:bro_proxies') %}
|
{%- set proxies = salt['pillar.get']('sensor:bro_proxies') %}
|
||||||
@@ -14,12 +13,14 @@ host=localhost
|
|||||||
[proxy-{{ demproxies }}]
|
[proxy-{{ demproxies }}]
|
||||||
type=proxy
|
type=proxy
|
||||||
host=localhost
|
host=localhost
|
||||||
|
{%- endfor %}
|
||||||
|
|
||||||
[worker-1]
|
[worker-1]
|
||||||
type=worker
|
type=worker
|
||||||
host=localhost
|
host=localhost
|
||||||
interface=af_packet::{{ interface }}
|
interface=af_packet::{{ interface }}
|
||||||
lb_method=custom
|
lb_method=custom
|
||||||
|
|
||||||
{%- if salt['pillar.get']('sensor:bro_lbprocs'|length > 1) %}
|
{%- if salt['pillar.get']('sensor:bro_lbprocs'|length > 1) %}
|
||||||
lb_procs={{ lbprocs }}
|
lb_procs={{ lbprocs }}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user