mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 01:02:46 +01:00
change boolean
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
{%- set HELIX_API_KEY = salt['pillar.get']('fireeye:helix:api_key', '') %}
|
||||
{%- set UNIQUEID = salt['pillar.get']('sensor:uniqueid', '') %}
|
||||
{%- set TRUE_CLUSTER = salt['pillar.get']('elasticsearch:true_cluster', False) %}
|
||||
{%- set ZEEK_ENABLED = salt['pillar.get']('zeek:enabled', 'True') %}
|
||||
{%- set ZEEK_ENABLED = salt['pillar.get']('zeek:enabled', True) %}
|
||||
{%- set MDENGINE = salt['pillar.get']('global:mdengine', 'ZEEK') %}
|
||||
|
||||
|
||||
@@ -743,7 +743,7 @@
|
||||
"/scripts/stenoloss.sh",
|
||||
"/scripts/suriloss.sh",
|
||||
"/scripts/checkfiles.sh",
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED is sameas true %}
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED %}
|
||||
"/scripts/zeekloss.sh",
|
||||
"/scripts/zeekcaptureloss.sh",
|
||||
{%- endif %}
|
||||
@@ -760,7 +760,7 @@
|
||||
"/scripts/stenoloss.sh",
|
||||
"/scripts/suriloss.sh",
|
||||
"/scripts/checkfiles.sh",
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED is sameas true %}
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED %}
|
||||
"/scripts/zeekloss.sh",
|
||||
"/scripts/zeekcaptureloss.sh",
|
||||
{%- endif %}
|
||||
@@ -779,7 +779,7 @@
|
||||
"/scripts/stenoloss.sh",
|
||||
"/scripts/suriloss.sh",
|
||||
"/scripts/checkfiles.sh",
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED is sameas true %}
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED %}
|
||||
"/scripts/zeekloss.sh",
|
||||
"/scripts/zeekcaptureloss.sh",
|
||||
{%- endif %}
|
||||
@@ -797,7 +797,7 @@
|
||||
"/scripts/stenoloss.sh",
|
||||
"/scripts/suriloss.sh",
|
||||
"/scripts/checkfiles.sh",
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED is sameas true %}
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED %}
|
||||
"/scripts/zeekloss.sh",
|
||||
"/scripts/zeekcaptureloss.sh",
|
||||
{%- endif %}
|
||||
@@ -814,7 +814,7 @@
|
||||
"/scripts/stenoloss.sh",
|
||||
"/scripts/suriloss.sh",
|
||||
"/scripts/checkfiles.sh",
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED is sameas true %}
|
||||
{%- if MDENGINE == 'ZEEK' and ZEEK_ENABLED %}
|
||||
"/scripts/zeekloss.sh",
|
||||
"/scripts/zeekcaptureloss.sh",
|
||||
{%- endif %}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{% set ZEEKOPTIONS = {} %}
|
||||
{% set ENABLED = salt['pillar.get']('zeek:enabled', 'True') %}
|
||||
{% set ENABLED = salt['pillar.get']('zeek: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 %}
|
||||
{% if grains.id.split('_')|last == 'import' or not ENABLED %}
|
||||
{% do ZEEKOPTIONS.update({'start': False}) %}
|
||||
{% do ZEEKOPTIONS.update({'pl_cron_state': 'absent'}) %}
|
||||
{% else %}
|
||||
@@ -10,7 +10,7 @@
|
||||
{% do ZEEKOPTIONS.update({'pl_cron_state': 'present'}) %}
|
||||
{% endif %}
|
||||
|
||||
{% if ENABLED is sameas false %}
|
||||
{% if not ENABLED %}
|
||||
{% do ZEEKOPTIONS.update({'status': 'absent'}) %}
|
||||
{% else %}
|
||||
{% do ZEEKOPTIONS.update({'status': 'running'}) %}
|
||||
|
||||
Reference in New Issue
Block a user