Add copy buttons to demo configuration page (#6561)

Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
This commit is contained in:
Naarcha-AWS 2024-03-01 13:55:52 -06:00 committed by GitHub
parent bd73c3637f
commit 90d3bbc5dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 7 deletions

View File

@ -31,8 +31,9 @@ Use the following steps to set up the Security plugin using Docker:
3. Run the following command:
```bash
$ docker-compose up
docker-compose up
```
{% include copy.html %}
### Setting up a custom admin password
**Note**: For OpenSearch versions 2.12 and later, you must set the initial admin password before installation. To customize the admin password, you can take the following steps:
@ -47,14 +48,16 @@ $ docker-compose up
For TAR distributions on Linux, download the Linux setup files from the OpenSearch [Download & Get Started](https://opensearch.org/downloads.html) page. Then use the following command to run the demo configuration:
```bash
$ ./opensearch-tar-install.sh
./opensearch-tar-install.sh
```
{% include copy.html %}
For OpenSearch 2.12 or later, set a new custom admin password before installation by using the following command:
```bash
$ export OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password>
export OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password>
```
{% include copy.html %}
### Windows
@ -63,12 +66,14 @@ For ZIP distributions on Windows, after downloading and extracting the setup fil
```powershell
> .\opensearch-windows-install.bat
```
{% include copy.html %}
For OpenSearch 2.12 or later, set a new custom admin password before installation by running the following command:
```powershell
> set OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password>
```
{% include copy.html %}
### Helm
@ -85,28 +90,32 @@ extraEnvs:
For RPM packages, install OpenSearch and set up the demo configuration by running the following command:
```bash
$ sudo yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm
sudo yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm
```
{% include copy.html %}
For OpenSearch 2.12 or later, set a new custom admin password before installation by using the following command:
```bash
$ sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password> yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm
sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password> yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm
```
{% include copy.html %}
### DEB
For DEB packages, install OpenSearch and set up the demo configuration by running the following command:
```bash
$ sudo dpkg -i opensearch-{{site.opensearch_version}}-linux-arm64.deb
sudo dpkg -i opensearch-{{site.opensearch_version}}-linux-arm64.deb
```
{% include copy.html %}
For OpenSearch 2.12 or later, set a new custom admin password before installation by using the following command:
```bash
$ sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password> dpkg -i opensearch-{{site.opensearch_version}}-linux-arm64.deb
sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password> dpkg -i opensearch-{{site.opensearch_version}}-linux-arm64.deb
```
{% include copy.html %}
## Local distribution