mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +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"\
|
" node_route_type: hot"\
|
||||||
"" >> "$pillar_file"
|
"" >> "$pillar_file"
|
||||||
|
|
||||||
if [ "$install_type" != 'EVAL' ] && [ "$install_type" != 'HELIXSENSOR' ] && [ "$install_type" != 'MANAGERSEARCH' ] && [ "$install_type" != 'STANDALONE' ]; then
|
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
"logstash_settings:"\
|
"logstash_settings:"\
|
||||||
" ls_pipeline_batch_size: $LSPIPELINEBATCH"\
|
" ls_pipeline_batch_size: $LSPIPELINEBATCH"\
|
||||||
@@ -1150,7 +1149,6 @@ elasticsearch_pillar() {
|
|||||||
" ls_batch_count: $LSINPUTBATCHCOUNT"\
|
" ls_batch_count: $LSINPUTBATCHCOUNT"\
|
||||||
" lsheap: $NODE_LS_HEAP_SIZE"\
|
" lsheap: $NODE_LS_HEAP_SIZE"\
|
||||||
"" >> "$pillar_file"
|
"" >> "$pillar_file"
|
||||||
fi
|
|
||||||
|
|
||||||
printf '%s\n' '----' >> "$setup_log" 2>&1
|
printf '%s\n' '----' >> "$setup_log" 2>&1
|
||||||
cat "$pillar_file" >> "$setup_log" 2>&1
|
cat "$pillar_file" >> "$setup_log" 2>&1
|
||||||
|
|||||||
@@ -440,8 +440,10 @@ fi
|
|||||||
set_progress_str 18 'Setting node type'
|
set_progress_str 18 'Setting node type'
|
||||||
set_node_type >> $setup_log 2>&1
|
set_node_type >> $setup_log 2>&1
|
||||||
|
|
||||||
set_progress_str 19 'Generating search node pillar'
|
if ! [[ $is_manager || $is_helix ]]; then
|
||||||
elasticsearch_pillar >> $setup_log 2>&1
|
set_progress_str 19 'Generating search node pillar'
|
||||||
|
elasticsearch_pillar >> $setup_log 2>&1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_minion ]]; then
|
if [[ $is_minion ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user