Re: use env variables in bind for bind options

2016-05-20 Thread Aleksandar Lazic
Hi Holger Am 20-05-2016 17:02, schrieb Holger Just: Hi Aleks, Aleksandar Lazic wrote: My conclusion is that with or without " the ${...} is not substituted, at least in the bind line. From your output, it looks like you are using an older version of HAProxy. yep. [root@4a9889bfd2ac

Re: use env variables in bind for bind options

2016-05-20 Thread Holger Just
Hi Aleks, Aleksandar Lazic wrote: > My conclusion is that with or without " the ${...} is not substituted, > at least in the bind line. >From your output, it looks like you are using an older version of HAProxy. The behavior of quoted strings in the config changed in HAProxy 1.6. It appears you

Re: use env variables in bind for bind options

2016-05-20 Thread Aleksandar Lazic
Hi Holger. Am 20-05-2016 15:49, schrieb Holger Just: Hi Aleks, Aleksandar Lazic wrote: ### bind :${ROUTER_SERVICE_HTTP_PORT} ${ROUTER_SERVICE_HTTP_PORT_BIND_OPTONS} ### It's look to me that this is not possible. To quote from Section 2.3 of configuration.txt: Those variables are

Re: use env variables in bind for bind options

2016-05-20 Thread Holger Just
Hi Aleks, Aleksandar Lazic wrote: > ### bind :${ROUTER_SERVICE_HTTP_PORT} > ${ROUTER_SERVICE_HTTP_PORT_BIND_OPTONS} ### > > It's look to me that this is not possible. To quote from Section 2.3 of configuration.txt: > Those variables are interpreted only within double quotes. Variables > are

use env variables in bind for bind options

2016-05-20 Thread Aleksandar Lazic
Hi. Today I tried some fancy stuff ;-). https://github.com/git001/openshift_custom_haproxy_ext/commit/d30fdb4fae0988b9a35ee43fef5cf247ae822f6f#diff-f81691f60803593ee683f75fb91cdd03 ### bind :${ROUTER_SERVICE_HTTP_PORT} ${ROUTER_SERVICE_HTTP_PORT_BIND_OPTONS} ### It's look to me that this is