mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-17 20:31:43 +00:00
@@ -13,7 +13,6 @@ then
|
|||||||
|
|
||||||
# Set the cluster.name and discovery.zen.minimun_master_nodes variables
|
# Set the cluster.name and discovery.zen.minimun_master_nodes variables
|
||||||
sed -i 's:cluster.name\: "docker-cluster":cluster.name\: "'$CLUSTER_NAME'":g' $elastic_config_file
|
sed -i 's:cluster.name\: "docker-cluster":cluster.name\: "'$CLUSTER_NAME'":g' $elastic_config_file
|
||||||
sed -i 's:discovery.zen.minimum_master_nodes\: 1:discovery.zen.minimum_master_nodes\: '$CLUSTER_NUMBER_OF_MASTERS':g' $elastic_config_file
|
|
||||||
|
|
||||||
# Add the cluster configuration
|
# Add the cluster configuration
|
||||||
echo "
|
echo "
|
||||||
@@ -31,6 +30,7 @@ bootstrap:
|
|||||||
discovery:
|
discovery:
|
||||||
zen:
|
zen:
|
||||||
ping.unicast.hosts: ${CLUSTER_DISCOVERY_SERVICE}
|
ping.unicast.hosts: ${CLUSTER_DISCOVERY_SERVICE}
|
||||||
|
minimum_master_nodes: ${CLUSTER_NUMBER_OF_MASTERS}
|
||||||
|
|
||||||
" >> $elastic_config_file
|
" >> $elastic_config_file
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user