Remove unncessary Salt logic for Elasticsearch

This commit is contained in:
Wes
2023-03-28 12:19:36 +00:00
parent c68235c169
commit e2290d8a8e

View File

@@ -5,13 +5,7 @@
# Elastic License 2.0.
{% from 'vars/globals.map.jinja' import GLOBALS %}
{%- if grains['role'] in ['so-searchnode', 'so-heavynode'] %}
{%- set ELASTICSEARCH_HOST = GLOBALS.node_ip -%}
{%- set ELASTICSEARCH_PORT = salt['pillar.get']('elasticsearch:es_port') -%}
{%- elif grains['role'] in ['so-eval', 'so-managersearch', 'so-standalone', 'so-manager'] %}
{%- set ELASTICSEARCH_HOST = GLOBALS.manager_ip -%}
{%- set ELASTICSEARCH_PORT = salt['pillar.get']('manager:es_port') -%}
{%- endif -%}
{%- set LOG_SIZE_LIMIT = salt['pillar.get']('elasticsearch:retention:log_size_limit') -%}
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
@@ -19,8 +13,6 @@
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.
LOG="/opt/so/log/curator/so-curator-cluster-delete.log"
overlimit() {