[fix] Add Elasticsearch to containers running on Helix sensor

This commit is contained in:
William Wernert
2020-12-16 09:07:38 -05:00
parent 805e25f495
commit a4897d2063
5 changed files with 9 additions and 8 deletions

View File

@@ -84,6 +84,7 @@ container_list() {
TRUSTED_CONTAINERS=( TRUSTED_CONTAINERS=(
"so-filebeat" "so-filebeat"
"so-idstools" "so-idstools"
"so-elasticsearch"
"so-logstash" "so-logstash"
"so-nginx" "so-nginx"
"so-redis" "so-redis"

View File

@@ -504,11 +504,12 @@ else
update_docker_containers "soup" update_docker_containers "soup"
FEATURESCHECK=$(lookup_pillar features elastic) FEATURESCHECK=$(lookup_pillar features elastic)
if [[ "$FEATURESCHECK" == "True" ]]; then if [[ "$FEATURESCHECK" == "True" ]]; then
TRUSTED_CONTAINERS=( \ TRUSTED_CONTAINERS=(
"so-elasticsearch" \ "so-elasticsearch"
"so-filebeat" \ "so-filebeat"
"so-kibana" \ "so-kibana"
"so-logstash" ) "so-logstash"
)
update_docker_containers "features" "-features" update_docker_containers "features" "-features"
fi fi
fi fi

View File

@@ -45,10 +45,8 @@
{% set DOCKER_OPTIONS = salt['pillar.get']('logstash:docker_options', {}) %} {% set DOCKER_OPTIONS = salt['pillar.get']('logstash:docker_options', {}) %}
{% set TEMPLATES = salt['pillar.get']('elasticsearch:templates', {}) %} {% set TEMPLATES = salt['pillar.get']('elasticsearch:templates', {}) %}
{% if grains['role'] != 'so-helix' %}
include: include:
- elasticsearch - elasticsearch
{% endif %}
# Create the logstash group # Create the logstash group
logstashgroup: logstashgroup:

View File

@@ -61,6 +61,7 @@ base:
- suricata - suricata
- zeek - zeek
- redis - redis
- elasticsearch
- logstash - logstash
{%- if FILEBEAT %} {%- if FILEBEAT %}
- filebeat - filebeat

View File

@@ -692,7 +692,7 @@ set_redirect >> $setup_log 2>&1
salt-call state.apply -l info nginx >> $setup_log 2>&1 salt-call state.apply -l info nginx >> $setup_log 2>&1
fi fi
if [[ $is_manager || $is_node || $is_import ]]; then if [[ $is_manager || $is_node || $is_import || $is_helix ]]; then
set_progress_str 64 "$(print_salt_state_apply 'elasticsearch')" set_progress_str 64 "$(print_salt_state_apply 'elasticsearch')"
salt-call state.apply -l info elasticsearch >> $setup_log 2>&1 salt-call state.apply -l info elasticsearch >> $setup_log 2>&1
fi fi