Skip to content

Commit 7508e3c

Browse files
committed
Add initial admin password prompt to OpenSearch service
1 parent 3b20251 commit 7508e3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Services/OpenSearch.php

+6
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ class OpenSearch extends BaseService
2525
'prompt' => 'Disable security plugin (true or false)?',
2626
'default' => 'true',
2727
],
28+
[
29+
'shortname' => 'password',
30+
'prompt' => 'What is the initial admin password?',
31+
'default' => 'admin',
32+
],
2833
];
2934

3035
protected $dockerRunTemplate = '-p "${:port}":9200 \
3136
-p "${:analyzer_port}":9600 \
3237
-e DISABLE_SECURITY_PLUGIN="${:disable_security}" \
38+
-e OPENSEARCH_INITIAL_ADMIN_PASSWORD="${:password}" \
3339
-e "discovery.type=single-node" \
3440
-v "${:volume}":/usr/share/opensearch/data \
3541
"${:organization}"/"${:image_name}":"${:tag}"';

0 commit comments

Comments
 (0)