mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Removed some strelka/yara rules from salt. Removed yara scripts for downloading and updating rules. This will be managed by SOC. Added a new compile_yara.py script. Added the strelka repos folder.
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
|
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
|
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
|
# Elastic License 2.0.
|
|
|
|
{% from 'allowed_states.map.jinja' import allowed_states %}
|
|
{% if sls.split('.')[0] in allowed_states %}
|
|
{% from 'strelka/map.jinja' import STRELKAMERGED %}
|
|
|
|
include:
|
|
- strelka.config
|
|
- strelka.backend.sostatus
|
|
|
|
backend_backend_config:
|
|
file.managed:
|
|
- name: /opt/so/conf/strelka/backend/backend.yaml
|
|
- source: salt://strelka/backend/files/backend.yaml.jinja
|
|
- template: jinja
|
|
- user: 939
|
|
- group: 939
|
|
- makedirs: True
|
|
- defaults:
|
|
BACKENDCONFIG: {{ STRELKAMERGED.backend.config.backend }}
|
|
|
|
backend_logging_config:
|
|
file.managed:
|
|
- name: /opt/so/conf/strelka/backend/logging.yaml
|
|
- source: salt://strelka/backend/files/logging.yaml.jinja
|
|
- template: jinja
|
|
- user: 939
|
|
- group: 939
|
|
- defaults:
|
|
LOGGINGCONFIG: {{ STRELKAMERGED.backend.config.logging }}
|
|
|
|
backend_passwords:
|
|
file.managed:
|
|
- name: /opt/so/conf/strelka/backend/passwords.dat
|
|
- source: salt://strelka/backend/files/passwords.dat.jinja
|
|
- template: jinja
|
|
- user: 939
|
|
- group: 939
|
|
- defaults:
|
|
PASSWORDS: {{ STRELKAMERGED.backend.config.passwords }}
|
|
|
|
backend_taste:
|
|
file.managed:
|
|
- name: /opt/so/conf/strelka/backend/taste/taste.yara
|
|
- source: salt://strelka/backend/files/taste/taste.yara
|
|
- makedirs: True
|
|
- user: 939
|
|
- group: 939
|
|
|
|
{% else %}
|
|
|
|
{{sls}}_state_not_allowed:
|
|
test.fail_without_changes:
|
|
- name: {{sls}}_state_not_allowed
|
|
|
|
{% endif %}
|