parameters: _param: haproxy_elasticsearch_bind_host: ${_param:haproxy_bind_address} haproxy_elasticsearch_bind_port: 9200 haproxy_elasticsearch_exposed_port: 19200 haproxy_elasticsearch_ssl: enabled: false haproxy: proxy: listen: elasticsearch: mode: http options: - forwardfor - httpchk - httpclose - httplog balance: source http_request: - action: "add-header X-Forwarded-Proto https" condition: "if { ssl_fc }" binds: - address: ${_param:haproxy_elasticsearch_bind_host} port: ${_param:haproxy_elasticsearch_bind_port} ssl: ${_param:haproxy_elasticsearch_ssl} servers: - name: ${_param:cluster_node01_name} host: ${_param:cluster_node01_address} port: ${_param:haproxy_elasticsearch_exposed_port} params: check - name: ${_param:cluster_node02_name} host: ${_param:cluster_node02_address} port: ${_param:haproxy_elasticsearch_exposed_port} params: backup check - name: ${_param:cluster_node03_name} host: ${_param:cluster_node03_address} port: ${_param:haproxy_elasticsearch_exposed_port} params: backup check