7
7
# Export the TEST_SUITE variable, eg. 'free' or 'platinum' defaults to 'free'.
8
8
# Export the NUMBER_OF_NODES variable to start more than 1 node
9
9
10
- # Version 1.4 .0
10
+ # Version 1.6 .0
11
11
# - Initial version of the run-elasticsearch.sh script
12
12
# - Deleting the volume should not dependent on the container still running
13
13
# - Fixed `ES_JAVA_OPTS` config
18
18
# - Added flags to make local CCR configurations work
19
19
# - Added action.destructive_requires_name=false as the default will be true in v8
20
20
# - Added ingest.geoip.downloader.enabled=false as it causes false positives in testing
21
+ # - Moved ELASTIC_PASSWORD and xpack.security.enabled to the base arguments for "Security On by default"
22
+ # - Use https only when TEST_SUITE is "platinum", when "free" use http
21
23
22
24
script_path=$( dirname $( realpath -s $0 ) )
23
25
source $script_path /functions/imports.sh
@@ -31,6 +33,8 @@ cluster_name=${moniker}${suffix}
31
33
32
34
declare -a volumes
33
35
environment=($( cat << -END
36
+ --env ELASTIC_PASSWORD=$elastic_password
37
+ --env xpack.security.enabled=true
34
38
--env node.name=$es_node_name
35
39
--env cluster.name=$cluster_name
36
40
--env cluster.initial_master_nodes=$master_node_name
@@ -42,13 +46,12 @@ environment=($(cat <<-END
42
46
--env repositories.url.allowed_urls=http://snapshot.test*
43
47
--env action.destructive_requires_name=false
44
48
--env ingest.geoip.downloader.enabled=false
49
+ --env cluster.deprecation_indexing.enabled=false
45
50
END
46
51
) )
47
52
if [[ " $TEST_SUITE " == " platinum" ]]; then
48
53
environment+=($( cat << -END
49
- --env ELASTIC_PASSWORD=$elastic_password
50
54
--env xpack.license.self_generated.type=trial
51
- --env xpack.security.enabled=true
52
55
--env xpack.security.http.ssl.enabled=true
53
56
--env xpack.security.http.ssl.verification_mode=certificate
54
57
--env xpack.security.http.ssl.key=certs/testnode.key
67
70
--volume $ssl_ca :/usr/share/elasticsearch/config/certs/ca.crt
68
71
END
69
72
) )
73
+ else
74
+ environment+=($( cat << -END
75
+ --env xpack.security.http.ssl.enabled=false
76
+ END
77
+ ) )
70
78
fi
71
79
72
80
cert_validation_flags=" "
130
138
fi
131
139
132
140
done
141
+
0 commit comments