move custom es cluster name pillar location

This commit is contained in:
m0duspwnens
2021-09-17 15:28:35 -04:00
parent b877aa44bc
commit e864bc5404

View File

@@ -1725,16 +1725,17 @@ manager_global() {
"elastic:"\
" features: False"\
"elasticsearch:"\
" replicas: 0" >> "$global_pillar"
if [ -n "$ESCLUSTERNAME" ]; then
printf '%s\n'\
" true_cluster: True"\
" true_cluster_name: '$ESCLUSTERNAME'" >> "$global_pillar"
" config:"\
" cluster:"\
" name: '$ESCLUSTERNAME'" >> "$global_pillar"
else
printf '%s\n'\
" true_cluster: False"\
" true_cluster_name: 'so'" >> "$global_pillar"
" true_cluster: False" >> "$global_pillar"
fi
" replicas: 0" >> "$global_pillar"
printf '%s\n'\
" discovery_nodes: 1"\
" hot_warm_enabled: False"\