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:"\ "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"\