dont constantly run steno or suricata containers for import node

This commit is contained in:
m0duspwnens
2020-08-14 14:43:37 -04:00
parent f9a6b8d231
commit 35027e32b3
4 changed files with 16 additions and 0 deletions
+2
View File
@@ -18,6 +18,7 @@
{% set INTERFACE = salt['pillar.get']('sensor:interface', 'bond0') %}
{% set BPF_STENO = salt['pillar.get']('steno:bpf', None) %}
{% set BPF_COMPILED = "" %}
{% from "pcap/map.jinja" import START with context %}
# PCAP Section
@@ -131,6 +132,7 @@ sensoronilog:
so-steno:
docker_container.running:
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-steno:{{ VERSION }}
- start: {{ START }}
- network_mode: host
- privileged: True
- port_bindings:
+6
View File
@@ -0,0 +1,6 @@
# don't start the docker container if it is an import node
{% if grains.id.split('_')|last == 'import' %}
{% set START = False %}
{% else %}
{% set START = True %}
{% endif %}