mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
16 lines
533 B
Django/Jinja
16 lines
533 B
Django/Jinja
{% set STENOOPTIONS = {} %}
|
|
{% set ENABLED = salt['pillar.get']('steno:enabled', 'True') %}
|
|
|
|
# don't start the docker container if it is an import node or disabled via pillar
|
|
{% if grains.id.split('_')|last == 'import' or ENABLED is sameas false %}
|
|
{% do STENOOPTIONS.update({'start': False}) %}
|
|
{% else %}
|
|
{% do STENOOPTIONS.update({'start': True}) %}
|
|
{% endif %}
|
|
|
|
{% if ENABLED is sameas false %}
|
|
{% do STENOOPTIONS.update({'status': 'absent'}) %}
|
|
{% else %}
|
|
{% do STENOOPTIONS.update({'status': 'running'}) %}
|
|
{% endif %}
|