Bro Salt Module - add endfor in node.cfg

This commit is contained in:
Mike Reeves
2018-03-06 10:22:19 -05:00
parent 320321287d
commit 0fc603ef38

View File

@@ -1,5 +1,4 @@
{%- set interface = salt['pillar.get']('sensor:interface', '') %}
{%- if salt['pillar.get']('sensor:bro_pins')|length > 1 %}
{%- if salt['pillar.get']('sensor:bro_proxies'|length > 1) %}
{%- set proxies = salt['pillar.get']('sensor:bro_proxies') %}
@@ -14,12 +13,14 @@ host=localhost
[proxy-{{ demproxies }}]
type=proxy
host=localhost
{%- endfor %}
[worker-1]
type=worker
host=localhost
interface=af_packet::{{ interface }}
lb_method=custom
{%- if salt['pillar.get']('sensor:bro_lbprocs'|length > 1) %}
lb_procs={{ lbprocs }}
{%- else %}