mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #12860 from Security-Onion-Solutions/issue/12856
allow for enabled/disable of so-elasticsearch-indices-delete cronjob
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
elasticsearch:
|
elasticsearch:
|
||||||
|
enabled: false
|
||||||
|
index_clean: true
|
||||||
config:
|
config:
|
||||||
action:
|
action:
|
||||||
destructive_requires_name: true
|
destructive_requires_name: true
|
||||||
@@ -54,7 +56,6 @@ elasticsearch:
|
|||||||
enabled: true
|
enabled: true
|
||||||
key: /usr/share/elasticsearch/config/elasticsearch.key
|
key: /usr/share/elasticsearch/config/elasticsearch.key
|
||||||
verification_mode: none
|
verification_mode: none
|
||||||
enabled: false
|
|
||||||
pipelines:
|
pipelines:
|
||||||
custom001:
|
custom001:
|
||||||
description: Custom Pipeline
|
description: Custom Pipeline
|
||||||
|
|||||||
@@ -200,9 +200,15 @@ so-elasticsearch-roles-load:
|
|||||||
- require:
|
- require:
|
||||||
- docker_container: so-elasticsearch
|
- docker_container: so-elasticsearch
|
||||||
- file: elasticsearch_sbin_jinja
|
- file: elasticsearch_sbin_jinja
|
||||||
{% if grains.role in ['so-eval', 'so-standalone', 'so-managersearch', 'so-heavynode', 'so-manager'] %}
|
|
||||||
|
{% if grains.role in ['so-eval', 'so-standalone', 'so-managersearch', 'so-heavynode', 'so-manager'] %}
|
||||||
|
{% if ELASTICSEARCHMERGED.index_clean %}
|
||||||
|
{% set ap = "present" %}
|
||||||
|
{% else %}
|
||||||
|
{% set ap = "absent" %}
|
||||||
|
{% endif %}
|
||||||
so-elasticsearch-indices-delete:
|
so-elasticsearch-indices-delete:
|
||||||
cron.present:
|
cron.{{ap}}:
|
||||||
- name: /usr/sbin/so-elasticsearch-indices-delete > /opt/so/log/elasticsearch/cron-elasticsearch-indices-delete.log 2>&1
|
- name: /usr/sbin/so-elasticsearch-indices-delete > /opt/so/log/elasticsearch/cron-elasticsearch-indices-delete.log 2>&1
|
||||||
- identifier: so-elasticsearch-indices-delete
|
- identifier: so-elasticsearch-indices-delete
|
||||||
- user: root
|
- user: root
|
||||||
@@ -211,7 +217,8 @@ so-elasticsearch-indices-delete:
|
|||||||
- daymonth: '*'
|
- daymonth: '*'
|
||||||
- month: '*'
|
- month: '*'
|
||||||
- dayweek: '*'
|
- dayweek: '*'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ elasticsearch:
|
|||||||
esheap:
|
esheap:
|
||||||
description: Specify the memory heap size in (m)egabytes for Elasticsearch.
|
description: Specify the memory heap size in (m)egabytes for Elasticsearch.
|
||||||
helpLink: elasticsearch.html
|
helpLink: elasticsearch.html
|
||||||
|
index_clean:
|
||||||
|
description: Determines if indices should be considered for deletion by available disk space in the cluster. Otherwise, indices will only be deleted by the age defined in the ILM settings.
|
||||||
|
forcedType: bool
|
||||||
|
helpLink: elasticsearch.html
|
||||||
retention:
|
retention:
|
||||||
retention_pct:
|
retention_pct:
|
||||||
decription: Total percentage of space used by Elasticsearch for multi node clusters
|
decription: Total percentage of space used by Elasticsearch for multi node clusters
|
||||||
|
|||||||
Reference in New Issue
Block a user