mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 03:32:53 +01:00
Merge pull request #5213 from Security-Onion-Solutions/hotfix/curator
stop curator and remove from so-status for manager
This commit is contained in:
@@ -158,6 +158,13 @@ delete_so-curator_so-status.disabled:
|
|||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
- regex: ^so-curator$
|
- regex: ^so-curator$
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
delete_so-curator_so-status:
|
||||||
|
file.line:
|
||||||
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
|
- match: ^so-curator$
|
||||||
|
- mode: delete
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Begin Curator Cron Jobs
|
# Begin Curator Cron Jobs
|
||||||
|
|||||||
@@ -4,9 +4,12 @@
|
|||||||
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
|
{% do CURATOROPTIONS.update({'manage_sostatus': True}) %}
|
||||||
|
|
||||||
# don't start the docker container if curator is disabled via pillar
|
# don't start the docker container if curator is disabled via pillar
|
||||||
{% if not ENABLED %}
|
{% if not ENABLED or grains.id.split('_')|last == 'manager'%}
|
||||||
{% do CURATOROPTIONS.update({'start': False}) %}
|
{% do CURATOROPTIONS.update({'start': False}) %}
|
||||||
{% do CURATOROPTIONS.update({'status': 'absent'}) %}
|
{% do CURATOROPTIONS.update({'status': 'absent'}) %}
|
||||||
|
{% if grains.id.split('_')|last == 'manager' %}
|
||||||
|
{% do CURATOROPTIONS.update({'manage_sostatus': False}) %}
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% do CURATOROPTIONS.update({'start': True}) %}
|
{% do CURATOROPTIONS.update({'start': True}) %}
|
||||||
{% do CURATOROPTIONS.update({'status': 'running'}) %}
|
{% do CURATOROPTIONS.update({'status': 'running'}) %}
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ base:
|
|||||||
{%- if FILEBEAT %}
|
{%- if FILEBEAT %}
|
||||||
- filebeat
|
- filebeat
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
- curator
|
||||||
- utility
|
- utility
|
||||||
- schedule
|
- schedule
|
||||||
{%- if FLEETMANAGER or FLEETNODE %}
|
{%- if FLEETMANAGER or FLEETNODE %}
|
||||||
|
|||||||
Reference in New Issue
Block a user