* Clarifying environment variable substitution in the ES configuration YAML * Update code snippet * Remove extraneous quotes from string example * Incorporating review feedback
This commit is contained in:
parent
94b3eed6be
commit
fe558f6373
|
@ -71,7 +71,7 @@ path.logs: /var/log/elasticsearch
|
|||
|
||||
Environment variables referenced with the `${...}` notation within the
|
||||
configuration file will be replaced with the value of the environment
|
||||
variable, for instance:
|
||||
variable. For example:
|
||||
|
||||
[source,yaml]
|
||||
--------------------------------------------------
|
||||
|
@ -79,6 +79,13 @@ node.name: ${HOSTNAME}
|
|||
network.host: ${ES_NETWORK_HOST}
|
||||
--------------------------------------------------
|
||||
|
||||
Values for environment variables must be simple strings. Use a comma-separated string to provide values that Elasticsearch will parse as a list. For example, Elasticsearch will split the following string into a list of values for the `${HOSTNAME}` environment variable:
|
||||
|
||||
[source,yaml]
|
||||
----
|
||||
export HOSTNAME=“host1,host2"
|
||||
----
|
||||
|
||||
[discrete]
|
||||
[[cluster-setting-types]]
|
||||
=== Cluster and node setting types
|
||||
|
|
Loading…
Reference in New Issue