mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-16 22:12:48 +01:00
Merge pull request #9552 from Security-Onion-Solutions/fix/import-unnecessary-processes
Prevent unnecessary processes in Import Mode
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
{% endif %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user