testing
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
#!/command/with-contenv bash
|
#!/command/with-contenv bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
OPTIONS_FILE=/data/options.json
|
OPTIONS_FILE=/data/options.json
|
||||||
|
|
||||||
|
# Read options from Supervisor
|
||||||
|
admin_password=$(bashio::config 'admin_password')
|
||||||
|
|
||||||
|
# Export as environment variables for OpenSearch
|
||||||
|
export OPENSEARCH_INITIAL_ADMIN_PASSWORD="${admin_password}"
|
||||||
|
|
||||||
if [ ! -f "$OPTIONS_FILE" ]; then
|
if [ ! -f "$OPTIONS_FILE" ]; then
|
||||||
echo "[cont-init] No options.json, skipping plugin install"
|
echo "[cont-init] No options.json, skipping plugin install"
|
||||||
exit 0
|
exit 0
|
||||||
|
@@ -26,14 +26,14 @@ opensearch_heap=$(bashio::config 'opensearch_heap')
|
|||||||
export OPENSEARCH_INITIAL_ADMIN_PASSWORD="${admin_password}"
|
export OPENSEARCH_INITIAL_ADMIN_PASSWORD="${admin_password}"
|
||||||
export OPENSEARCH_JAVA_OPTS="-Xms${opensearch_heap} -Xmx${opensearch_heap}"
|
export OPENSEARCH_JAVA_OPTS="-Xms${opensearch_heap} -Xmx${opensearch_heap}"
|
||||||
|
|
||||||
echo "[s6-run] Starting OpenSearch node: $os-master roles:$master heap:$1.5g http:$9200 transport:$9300"
|
echo "[s6-run] Starting OpenSearch node: $NODE_NAME roles:$NODE_ROLES heap:$HEAP http:$HTTP_PORT transport:$TRANSPORT_PORT"
|
||||||
|
|
||||||
exec /usr/share/opensearch/bin/opensearch \
|
exec /usr/share/opensearch/bin/opensearch \
|
||||||
-E cluster.name=$hass-opensearch-cluster \
|
-E cluster.name=$CLUSTER_NAME \
|
||||||
-E node.name=$os-master \
|
-E node.name=$NODE_NAME \
|
||||||
-E node.roles=[$master] \
|
-E node.roles=[$NODE_ROLES] \
|
||||||
-E http.port=$9200 \
|
-E http.port=$HTTP_PORT \
|
||||||
-E transport.port=$9300 \
|
-E transport.port=$TRANSPORT_PORT \
|
||||||
-E network.host=0.0.0.0 \
|
-E network.host=0.0.0.0 \
|
||||||
-E discovery.seed_hosts=os-master,os-data-1,os-data-2,os-coord-1,os-coord-2 \
|
-E discovery.seed_hosts=os-master,os-data-1,os-data-2,os-coord-1,os-coord-2 \
|
||||||
-E cluster.initial_master_nodes=os-master
|
-E cluster.initial_master_nodes=os-master
|
||||||
|
Reference in New Issue
Block a user