Hi. Am 14.11.2018 um 08:46 schrieb Vijay Bais: > Hello, > > We have a requirement wherein a single generic backend with server options > configured as placeholders, which will resolve on the fly or at runtime. > > Currently, we have to define multiple backends (has to be hardcoded) and > select > them using the /use_backend/ keyword. > > Kindly help us with this generic backend implementation in HAProxy and let us > know if its possible OR any alternative way that this can be achieved.
Maybe you can use maps for your requirement. https://www.haproxy.com/blog/introduction-to-haproxy-maps/ As an example can you take a look at the openshift router template ;-) https://github.com/openshift/origin/blob/master/images/router/haproxy/conf/haproxy-config.template#L201-L202 > Thank you in advance, > Vijay B Regards Aleks