mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
move custom es cluster name pillar location
This commit is contained in:
@@ -1725,16 +1725,17 @@ manager_global() {
|
|||||||
"elastic:"\
|
"elastic:"\
|
||||||
" features: False"\
|
" features: False"\
|
||||||
"elasticsearch:"\
|
"elasticsearch:"\
|
||||||
" replicas: 0" >> "$global_pillar"
|
|
||||||
if [ -n "$ESCLUSTERNAME" ]; then
|
if [ -n "$ESCLUSTERNAME" ]; then
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" true_cluster: True"\
|
" true_cluster: True"\
|
||||||
" true_cluster_name: '$ESCLUSTERNAME'" >> "$global_pillar"
|
" config:"\
|
||||||
|
" cluster:"\
|
||||||
|
" name: '$ESCLUSTERNAME'" >> "$global_pillar"
|
||||||
else
|
else
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" true_cluster: False"\
|
" true_cluster: False" >> "$global_pillar"
|
||||||
" true_cluster_name: 'so'" >> "$global_pillar"
|
|
||||||
fi
|
fi
|
||||||
|
" replicas: 0" >> "$global_pillar"
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
" discovery_nodes: 1"\
|
" discovery_nodes: 1"\
|
||||||
" hot_warm_enabled: False"\
|
" hot_warm_enabled: False"\
|
||||||
|
|||||||
Reference in New Issue
Block a user