You could try using an if statement in your env variable?
On 17 October 2014 06:50, Matt Hughes <[email protected]> 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 [email protected].
> 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 [email protected].
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.