Skip to content

Commit 8eef76a

Browse files
committed
Update ES run script
1 parent c19415f commit 8eef76a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.ci/run-elasticsearch.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Export the TEST_SUITE variable, eg. 'free' or 'platinum' defaults to 'free'.
88
# Export the NUMBER_OF_NODES variable to start more than 1 node
99

10-
# Version 1.5.0
10+
# Version 1.5.1
1111
# - Initial version of the run-elasticsearch.sh script
1212
# - Deleting the volume should not dependent on the container still running
1313
# - Fixed `ES_JAVA_OPTS` config
@@ -18,7 +18,7 @@
1818
# - Added flags to make local CCR configurations work
1919
# - Added action.destructive_requires_name=false as the default will be true in v8
2020
# - Added ingest.geoip.downloader.enabled=false as it causes false positives in testing
21-
# - Moved ELASTIC_PASSWORD to the base arguments for "Security On by default"
21+
# - Moved ELASTIC_PASSWORD and xpack.security.enabled to the base arguments for "Security On by default"
2222

2323
script_path=$(dirname $(realpath -s $0))
2424
source $script_path/functions/imports.sh
@@ -33,6 +33,7 @@ cluster_name=${moniker}${suffix}
3333
declare -a volumes
3434
environment=($(cat <<-END
3535
--env ELASTIC_PASSWORD=$elastic_password
36+
--env xpack.security.enabled=true
3637
--env node.name=$es_node_name
3738
--env cluster.name=$cluster_name
3839
--env cluster.initial_master_nodes=$master_node_name
@@ -48,9 +49,7 @@ END
4849
))
4950
if [[ "$TEST_SUITE" == "platinum" ]]; then
5051
environment+=($(cat <<-END
51-
--env ELASTIC_PASSWORD=$elastic_password
5252
--env xpack.license.self_generated.type=trial
53-
--env xpack.security.enabled=true
5453
--env xpack.security.http.ssl.enabled=true
5554
--env xpack.security.http.ssl.verification_mode=certificate
5655
--env xpack.security.http.ssl.key=certs/testnode.key

0 commit comments

Comments
 (0)