fix zeek state

This commit is contained in:
m0duspwnens
2020-02-03 11:15:44 -05:00
parent e07f5d30b7
commit 820462e45a

View File

@@ -1,6 +1,6 @@
{% set VERSION = salt['pillar.get']('static:soversion', 'HH1.1.4') %}
{% set MASTER = salt['grains.get']('master') %}
{% set BPF_ZEEK = salt['pillar.get']('zeek:bpf') %}
{% set BPF_ZEEK = salt['pillar.get']('zeek:bpf', {}) %}
{% set BPF_STATUS = 0 %}
{% set INTERFACE = salt['pillar.get']('sensor:interface', 'bond0') %}
# Zeek Salt State
@@ -112,12 +112,12 @@ zeekbpf:
- name: /opt/so/conf/zeek/bpf
- user: 940
- group: 940
{% if BPF_STATUS %}
{% if BPF_STATUS %}
- contents_pillar: zeek:bpf
{% else %}
{% else %}
- contents:
- "ip or not ip"
{% endif %}
{% endif %}
localzeeksync:
file.managed: