Skip to content

Commit

Permalink
Merge pull request #288 from datashaman/search-security
Browse files Browse the repository at this point in the history
Add prompts for security on OpenSearch and ElasticSearch services
  • Loading branch information
mattstauffer committed Dec 26, 2022
2 parents 6eb1585 + d838ea1 commit cb1cfcf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Services/ElasticSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ class ElasticSearch extends BaseService
'prompt' => 'What is the Docker volume name?',
'default' => 'elastic_data',
],
[
'shortname' => 'enable_security',
'prompt' => 'Enable security (true or false)?',
'default' => 'true',
],
];

protected $dockerRunTemplate = '-p "${:port}":9200 \
-e "discovery.type=single-node" \
-e "discovery.type=single-node" \
-e xpack.security.enabled="${:enable_security}" \
-v "${:volume}":/usr/share/elasticsearch/data \
"${:organization}"/"${:image_name}":"${:tag}"';

Expand Down
6 changes: 6 additions & 0 deletions app/Services/OpenSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ class OpenSearch extends BaseService
'prompt' => 'Which host port would you like to be used by the performance analyzer?',
'default' => 9600,
],
[
'shortname' => 'disable_security',
'prompt' => 'Disable security plugin (true or false)?',
'default' => 'false',
],
];

protected $dockerRunTemplate = '-p "${:port}":9200 \
-p "${:analyzer_port}":9600 \
-e DISABLE_SECURITY_PLUGIN="${:disable_security}" \
-e "discovery.type=single-node" \
-v "${:volume}":/usr/share/opensearch/data \
"${:organization}"/"${:image_name}":"${:tag}"';
Expand Down

0 comments on commit cb1cfcf

Please sign in to comment.