Skip to content

Commit

Permalink
Merge pull request #12632 from Security-Onion-Solutions/fix/remove_te…
Browse files Browse the repository at this point in the history
…mp_yara

Remove temp YARA
  • Loading branch information
weslambert authored Mar 21, 2024
2 parents 4b03d08 + 8429a36 commit 77ac342
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 57 deletions.
45 changes: 0 additions & 45 deletions salt/manager/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -117,51 +117,6 @@ rules_dir:
- group: socore
- makedirs: True
{% if STRELKAMERGED.rules.enabled %}
strelkarepos:
file.managed:
- name: /opt/so/conf/strelka/repos.txt
- source: salt://strelka/rules/repos.txt.jinja
- template: jinja
- defaults:
STRELKAREPOS: {{ STRELKAMERGED.rules.repos }}
- makedirs: True
strelka-yara-update:
{% if MANAGERMERGED.reposync.enabled and not GLOBALS.airgap %}
cron.present:
{% else %}
cron.absent:
{% endif %}
- user: socore
- name: '/usr/sbin/so-yara-update >> /opt/so/log/yarasync/yara-update.log 2>&1'
- identifier: strelka-yara-update
- hour: '7'
- minute: '1'
strelka-yara-download:
{% if MANAGERMERGED.reposync.enabled and not GLOBALS.airgap %}
cron.present:
{% else %}
cron.absent:
{% endif %}
- user: socore
- name: '/usr/sbin/so-yara-download >> /opt/so/log/yarasync/yara-download.log 2>&1'
- identifier: strelka-yara-download
- hour: '7'
- minute: '1'
{% if not GLOBALS.airgap %}
update_yara_rules:
cmd.run:
- name: /usr/sbin/so-yara-update
- onchanges:
- file: yara_update_scripts
download_yara_rules:
cmd.run:
- name: /usr/sbin/so-yara-download
- onchanges:
- file: yara_update_scripts
{% endif %}
{% endif %}
{% else %}
{{sls}}_state_not_allowed:
Expand Down
10 changes: 0 additions & 10 deletions salt/strelka/backend/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@ backend_taste:
- user: 939
- group: 939
{% if STRELKAMERGED.rules.enabled %}
strelkarules:
file.recurse:
- name: /opt/so/conf/strelka/rules
- source: salt://strelka/rules
- user: 939
- group: 939
- clean: True
{% endif %}
{% else %}
{{sls}}_state_not_allowed:
Expand Down
4 changes: 2 additions & 2 deletions salt/strelka/backend/enabled.sls
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ strelka_backend:
{% endfor %}
{% endif %}
- restart_policy: on-failure
- watch:
- file: strelkarules
#- watch:
#- file: strelkarules
delete_so-strelka-backend_so-status.disabled:
file.uncomment:
Expand Down

0 comments on commit 77ac342

Please sign in to comment.