Optional parameters in elasticsearch.yml

I have parameterized my elasticsearch.yml file like so:

node.name: ${NODE_NAME}

This let's me pass in NODE_NAME as an environment variable when running
ES. I was hoping that if NODE_NAME was undefined, ES would fall back to
the default of picking a dynamic name, but it just dies. Is there any way
to specify an optional syntax for env variables?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e2c1ae6c-0e30-423b-9e11-82a3b2d83bd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You could try using an if statement in your env variable?

On 17 October 2014 06:50, Matt Hughes hughes.matt@gmail.com wrote:

I have parameterized my elasticsearch.yml file like so:

node.name: ${NODE_NAME}

This let's me pass in NODE_NAME as an environment variable when running
ES. I was hoping that if NODE_NAME was undefined, ES would fall back to
the default of picking a dynamic name, but it just dies. Is there any way
to specify an optional syntax for env variables?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e2c1ae6c-0e30-423b-9e11-82a3b2d83bd2%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e2c1ae6c-0e30-423b-9e11-82a3b2d83bd2%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmMBRVTnirSWB%3D9XqCnRfBLaRTOEMxiBt-M%2B6Uiqo2ADQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Unclear how that would work. Example?

On Thursday, October 16, 2014 6:49:13 PM UTC-4, Mark Walkom wrote:

You could try using an if statement in your env variable?

On 17 October 2014 06:50, Matt Hughes <hughe...@gmail.com <javascript:>>
wrote:

I have parameterized my elasticsearch.yml file like so:

node.name: ${NODE_NAME}

This let's me pass in NODE_NAME as an environment variable when running
ES. I was hoping that if NODE_NAME was undefined, ES would fall back to
the default of picking a dynamic name, but it just dies. Is there any way
to specify an optional syntax for env variables?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e2c1ae6c-0e30-423b-9e11-82a3b2d83bd2%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e2c1ae6c-0e30-423b-9e11-82a3b2d83bd2%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ceaa6957-c26d-4dc6-99f8-6a997aef1d94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.