fix clustername redirect

This commit is contained in:
m0duspwnens
2021-09-17 15:44:54 -04:00
parent 109c83d8c3
commit 01323cc192

View File

@@ -1724,7 +1724,7 @@ manager_global() {
" hot_warm: False"\ " hot_warm: False"\
"elastic:"\ "elastic:"\
" features: False"\ " features: False"\
"elasticsearch:"\ "elasticsearch:"\ >> "$global_pillar"
if [ -n "$ESCLUSTERNAME" ]; then if [ -n "$ESCLUSTERNAME" ]; then
printf '%s\n'\ printf '%s\n'\
" true_cluster: True"\ " true_cluster: True"\
@@ -1735,8 +1735,9 @@ manager_global() {
printf '%s\n'\ printf '%s\n'\
" true_cluster: False" >> "$global_pillar" " true_cluster: False" >> "$global_pillar"
fi fi
" replicas: 0" >> "$global_pillar"
printf '%s\n'\ printf '%s\n'\
" replicas: 0"\
" discovery_nodes: 1"\ " discovery_nodes: 1"\
" hot_warm_enabled: False"\ " hot_warm_enabled: False"\
" cluster_routing_allocation_disk.threshold_enabled: true"\ " cluster_routing_allocation_disk.threshold_enabled: true"\