mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #985 from Security-Onion-Solutions/quickfix/elasticpillar
prevent elasticsearch pillar being added twice for managers and helix
This commit is contained in:
@@ -1142,7 +1142,6 @@ elasticsearch_pillar() {
|
||||
" 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
|
||||
|
||||
@@ -440,8 +440,10 @@ fi
|
||||
set_progress_str 18 'Setting node type'
|
||||
set_node_type >> $setup_log 2>&1
|
||||
|
||||
set_progress_str 19 'Generating search node pillar'
|
||||
elasticsearch_pillar >> $setup_log 2>&1
|
||||
if ! [[ $is_manager || $is_helix ]]; then
|
||||
set_progress_str 19 'Generating search node pillar'
|
||||
elasticsearch_pillar >> $setup_log 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $is_minion ]]; then
|
||||
|
||||
Reference in New Issue
Block a user