prevent elasticsearch pillar being added twice for managers and helix

This commit is contained in:
m0duspwnens
2020-07-13 09:45:11 -04:00
parent e62381e998
commit 242e17b329
2 changed files with 5 additions and 5 deletions

View File

@@ -1141,8 +1141,7 @@ elasticsearch_pillar() {
" log_size_limit: $log_size_limit"\
" node_route_type: hot"\
"" >> "$pillar_file"
if [ "$install_type" != 'EVAL' ] && [ "$install_type" != 'HELIXSENSOR' ] && [ "$install_type" != 'MANAGERSEARCH' ] && [ "$install_type" != 'STANDALONE' ]; then
printf '%s\n'\
"logstash_settings:"\
" ls_pipeline_batch_size: $LSPIPELINEBATCH"\
@@ -1150,7 +1149,6 @@ elasticsearch_pillar() {
" ls_batch_count: $LSINPUTBATCHCOUNT"\
" lsheap: $NODE_LS_HEAP_SIZE"\
"" >> "$pillar_file"
fi
printf '%s\n' '----' >> "$setup_log" 2>&1
cat "$pillar_file" >> "$setup_log" 2>&1