Merge pull request #9552 from Security-Onion-Solutions/fix/import-unnecessary-processes

Prevent unnecessary processes in Import Mode
This commit is contained in:
Doug Burks
2023-01-11 08:07:40 -05:00
committed by GitHub
3 changed files with 4 additions and 16 deletions

View File

@@ -4,12 +4,8 @@
# 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({'start': True}) %}
{% do STENOOPTIONS.update({'status': 'running'}) %}
{% endif %}

View File

@@ -4,12 +4,8 @@
# 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 SURICATAOPTIONS.update({'start': False}) %}
{% else %}
{% do SURICATAOPTIONS.update({'start': True}) %}
{% endif %}
{% if ENABLED is sameas false %}
{% do SURICATAOPTIONS.update({'status': 'absent'}) %}
{% else %}
{% do SURICATAOPTIONS.update({'start': True}) %}
{% do SURICATAOPTIONS.update({'status': 'running'}) %}
{% endif %}

View File

@@ -11,13 +11,9 @@
{% if grains.id.split('_')|last == 'import' or not ENABLED %}
{% do ZEEKOPTIONS.update({'start': False}) %}
{% do ZEEKOPTIONS.update({'pl_cron_state': 'absent'}) %}
{% do ZEEKOPTIONS.update({'status': 'absent'}) %}
{% else %}
{% do ZEEKOPTIONS.update({'start': True}) %}
{% do ZEEKOPTIONS.update({'pl_cron_state': 'present'}) %}
{% endif %}
{% if not ENABLED %}
{% do ZEEKOPTIONS.update({'status': 'absent'}) %}
{% else %}
{% do ZEEKOPTIONS.update({'status': 'running'}) %}
{% endif %}