forked from wazuh/wazuh-docker
Added 'cluster.initial_master_nodes' and related env variable.
This commit is contained in:
@@ -24,9 +24,18 @@ node:
|
|||||||
|
|
||||||
bootstrap:
|
bootstrap:
|
||||||
memory_lock: ${CLUSTER_MEMORY_LOCK}
|
memory_lock: ${CLUSTER_MEMORY_LOCK}
|
||||||
|
|
||||||
|
cluster.initial_master_nodes:
|
||||||
|
- '${CLUSTER_INITIAL_MASTER_NODES}'
|
||||||
|
|
||||||
" >> $elastic_config_file
|
" >> $elastic_config_file
|
||||||
else
|
else
|
||||||
|
|
||||||
echo 'cluster.initial_master_nodes: ["elasticsearch"]' >> $elastic_config_file
|
cat >> $elastic_config_file <<'EOF'
|
||||||
|
cluster.initial_master_nodes:
|
||||||
|
- 'elasticsearch'
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# echo 'discovery.type: single-node'
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user