mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Account for 0 active rules and change watch
This commit is contained in:
@@ -42,6 +42,8 @@ strelka_backend:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- restart_policy: on-failure
|
- restart_policy: on-failure
|
||||||
|
- watch:
|
||||||
|
- file: /opt/so/conf/strelka/rules/compiled/*
|
||||||
|
|
||||||
delete_so-strelka-backend_so-status.disabled:
|
delete_so-strelka-backend_so-status.disabled:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
|
|||||||
@@ -31,11 +31,13 @@ strelkarulesdir:
|
|||||||
|
|
||||||
{%- if grains.role in ['so-sensor', 'so-heavynode'] %}
|
{%- if grains.role in ['so-sensor', 'so-heavynode'] %}
|
||||||
strelkasensorrules:
|
strelkasensorrules:
|
||||||
file.managed:
|
file.recurse:
|
||||||
- name: /opt/so/conf/strelka/rules/compiled/rules.compiled
|
- name: /opt/so/conf/strelka/rules/compiled/
|
||||||
- source: salt://strelka/rules/compiled/rules.compiled
|
- source: salt://strelka/rules/compiled/
|
||||||
- user: 939
|
- user: 939
|
||||||
- group: 939
|
- group: 939
|
||||||
|
- file_mode: 755
|
||||||
|
- clean: True
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
strelkareposdir:
|
strelkareposdir:
|
||||||
|
|||||||
Reference in New Issue
Block a user