mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-22 02:08:07 +02:00
Add salt states for custom Zeek package loading
Create /opt/so/conf/zeek/zkg directory and sync custom packages from the manager via file.recurse. Bind mount the directory into the so-zeek container so the entrypoint can install packages on startup.
This commit is contained in:
@@ -32,6 +32,20 @@ zeekpolicydir:
|
|||||||
- group: 939
|
- group: 939
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|
||||||
|
zeekzkgdir:
|
||||||
|
file.directory:
|
||||||
|
- name: /opt/so/conf/zeek/zkg
|
||||||
|
- user: 937
|
||||||
|
- group: 939
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
|
zeekzkgsync:
|
||||||
|
file.recurse:
|
||||||
|
- name: /opt/so/conf/zeek/zkg
|
||||||
|
- source: salt://zeek/zkg
|
||||||
|
- user: 937
|
||||||
|
- group: 939
|
||||||
|
|
||||||
# Zeek Log Directory
|
# Zeek Log Directory
|
||||||
zeeklogdir:
|
zeeklogdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ so-zeek:
|
|||||||
- /opt/so/conf/zeek/policy/intel:/opt/zeek/share/zeek/policy/intel:rw
|
- /opt/so/conf/zeek/policy/intel:/opt/zeek/share/zeek/policy/intel:rw
|
||||||
- /opt/so/conf/zeek/bpf:/opt/zeek/etc/bpf:ro
|
- /opt/so/conf/zeek/bpf:/opt/zeek/etc/bpf:ro
|
||||||
- /opt/so/conf/zeek/config.zeek:/opt/zeek/share/zeek/site/packages/ja4/config.zeek:ro
|
- /opt/so/conf/zeek/config.zeek:/opt/zeek/share/zeek/site/packages/ja4/config.zeek:ro
|
||||||
|
- /opt/so/conf/zeek/zkg:/opt/so/conf/zeek/zkg:ro
|
||||||
{% if DOCKER.containers['so-zeek'].custom_bind_mounts %}
|
{% if DOCKER.containers['so-zeek'].custom_bind_mounts %}
|
||||||
{% for BIND in DOCKER.containers['so-zeek'].custom_bind_mounts %}
|
{% for BIND in DOCKER.containers['so-zeek'].custom_bind_mounts %}
|
||||||
- {{ BIND }}
|
- {{ BIND }}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
# Place custom Zeek packages in /opt/so/saltstack/local/salt/zeek/zkg/
|
||||||
Reference in New Issue
Block a user