mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 11:12:51 +01:00
23 lines
544 B
Plaintext
23 lines
544 B
Plaintext
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
|
{% from 'suricata/map.jinja' import SURICATAMERGED %}
|
|
|
|
suripcapdir:
|
|
file.directory:
|
|
- name: /nsm/suripcap
|
|
- user: 940
|
|
- group: 939
|
|
- mode: 755
|
|
- makedirs: True
|
|
|
|
{# there should only be 1 interface in af-packet so we can just reference the first list item #}
|
|
{% for i in range(1, SURICATAMERGED.config['af-packet'][0].threads + 1) %}
|
|
|
|
suripcapthread{{i}}dir:
|
|
file.directory:
|
|
- name: /nsm/suripcap/{{i}}
|
|
- user: 940
|
|
- group: 939
|
|
- mode: 755
|
|
|
|
{% endfor %}
|