[DOCS] Improve docs for 'elasticsearch-keystore add-file' command (#41084)

This commit is contained in:
James Rodewig 2019-04-11 08:48:42 -04:00
parent 9cfe194131
commit 93d6766afe
2 changed files with 13 additions and 1 deletions

View File

@ -152,7 +152,7 @@ Some settings are sensitive and must be stored in the
[source,sh]
----
bin/elasticsearch-keystore add-file gcs.client.default.credentials_file
bin/elasticsearch-keystore add-file gcs.client.default.credentials_file /path/service-account.json
----
The following are the available client settings. Those that must be stored in the keystore

View File

@ -64,6 +64,18 @@ through stdin, use the `--stdin` flag:
cat /file/containing/setting/value | bin/elasticsearch-keystore add --stdin the.setting.name.to.set
----------------------------------------------------------------
[float]
[[add-file-to-keystore]]
=== Adding file settings
You can add sensitive files, like authentication key files for cloud plugins,
using the `add-file` command. Be sure to include your file path as an argument
after the setting name.
[source,sh]
----------------------------------------------------------------
bin/elasticsearch-keystore add-file the.setting.name.to.set /path/example-file.json
----------------------------------------------------------------
[float]
[[remove-settings]]
=== Removing settings