mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-17 06:22:53 +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
|
# 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 %}
|
{% if grains.id.split('_')|last == 'import' or ENABLED is sameas false %}
|
||||||
{% do STENOOPTIONS.update({'start': False}) %}
|
{% do STENOOPTIONS.update({'start': False}) %}
|
||||||
{% else %}
|
|
||||||
{% do STENOOPTIONS.update({'start': True}) %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if ENABLED is sameas false %}
|
|
||||||
{% do STENOOPTIONS.update({'status': 'absent'}) %}
|
{% do STENOOPTIONS.update({'status': 'absent'}) %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% do STENOOPTIONS.update({'start': True}) %}
|
||||||
{% do STENOOPTIONS.update({'status': 'running'}) %}
|
{% do STENOOPTIONS.update({'status': 'running'}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -4,12 +4,8 @@
|
|||||||
# don't start the docker container if it is an import node or disabled via pillar
|
# 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 %}
|
{% if grains.id.split('_')|last == 'import' or ENABLED is sameas false %}
|
||||||
{% do SURICATAOPTIONS.update({'start': False}) %}
|
{% do SURICATAOPTIONS.update({'start': False}) %}
|
||||||
{% else %}
|
|
||||||
{% do SURICATAOPTIONS.update({'start': True}) %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if ENABLED is sameas false %}
|
|
||||||
{% do SURICATAOPTIONS.update({'status': 'absent'}) %}
|
{% do SURICATAOPTIONS.update({'status': 'absent'}) %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% do SURICATAOPTIONS.update({'start': True}) %}
|
||||||
{% do SURICATAOPTIONS.update({'status': 'running'}) %}
|
{% do SURICATAOPTIONS.update({'status': 'running'}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -11,13 +11,9 @@
|
|||||||
{% if grains.id.split('_')|last == 'import' or not ENABLED %}
|
{% if grains.id.split('_')|last == 'import' or not ENABLED %}
|
||||||
{% do ZEEKOPTIONS.update({'start': False}) %}
|
{% do ZEEKOPTIONS.update({'start': False}) %}
|
||||||
{% do ZEEKOPTIONS.update({'pl_cron_state': 'absent'}) %}
|
{% do ZEEKOPTIONS.update({'pl_cron_state': 'absent'}) %}
|
||||||
|
{% do ZEEKOPTIONS.update({'status': 'absent'}) %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% do ZEEKOPTIONS.update({'start': True}) %}
|
{% do ZEEKOPTIONS.update({'start': True}) %}
|
||||||
{% do ZEEKOPTIONS.update({'pl_cron_state': 'present'}) %}
|
{% do ZEEKOPTIONS.update({'pl_cron_state': 'present'}) %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not ENABLED %}
|
|
||||||
{% do ZEEKOPTIONS.update({'status': 'absent'}) %}
|
|
||||||
{% else %}
|
|
||||||
{% do ZEEKOPTIONS.update({'status': 'running'}) %}
|
{% do ZEEKOPTIONS.update({'status': 'running'}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user