mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix manager cron logic
This commit is contained in:
@@ -73,7 +73,7 @@ yara_update_scripts:
|
|||||||
EXCLUDEDRULES: {{ STRELKAMERGED.rules.excluded }}
|
EXCLUDEDRULES: {{ STRELKAMERGED.rules.excluded }}
|
||||||
|
|
||||||
so-repo-sync:
|
so-repo-sync:
|
||||||
{% if MANAGERMERGED.reposync.enabled or ! GLOBALS.airgap %}
|
{% if MANAGERMERGED.reposync.enabled or not GLOBALS.airgap %}
|
||||||
cron.present:
|
cron.present:
|
||||||
{% else %}
|
{% else %}
|
||||||
cron.absent:
|
cron.absent:
|
||||||
@@ -112,7 +112,7 @@ strelkarepos:
|
|||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|
||||||
strelka-yara-update:
|
strelka-yara-update:
|
||||||
{% if MANAGERMERGED.reposync.enabled or ! GLOBALS.airgap %}
|
{% if MANAGERMERGED.reposync.enabled or not GLOBALS.airgap %}
|
||||||
cron.present:
|
cron.present:
|
||||||
{% else %}
|
{% else %}
|
||||||
cron.absent:
|
cron.absent:
|
||||||
@@ -124,18 +124,18 @@ strelka-yara-update:
|
|||||||
- minute: '1'
|
- minute: '1'
|
||||||
|
|
||||||
strelka-yara-download:
|
strelka-yara-download:
|
||||||
{% if MANAGERMERGED.reposync.enabled or ! GLOBALS.airgap %}
|
{% if MANAGERMERGED.reposync.enabled or not GLOBALS.airgap %}
|
||||||
cron.present:
|
cron.present:
|
||||||
{% else %}
|
{% else %}
|
||||||
cron.absent:
|
cron.absent:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- user: socore
|
- user: socore
|
||||||
- name: '/usr/sbin/so-yara-download >> /nsm/strelka/log/yara-download.log 2>&1'
|
- name: '/usr/sbin/so-yara-download >> /opt/so/log/yarasync/yara-download.log 2>&1'
|
||||||
- identifier: strelka-yara-download
|
- identifier: strelka-yara-download
|
||||||
- hour: '7'
|
- hour: '7'
|
||||||
- minute: '1'
|
- minute: '1'
|
||||||
|
|
||||||
{% if ! GLOBALS.airgap %}
|
{% if not GLOBALS.airgap %}
|
||||||
update_yara_rules:
|
update_yara_rules:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: /usr/sbin/so-yara-update
|
- name: /usr/sbin/so-yara-update
|
||||||
|
|||||||
Reference in New Issue
Block a user