summaryrefslogtreecommitdiff
path: root/puppet/modules/haproxy/templates/haproxy_balancermember.erb
blob: 1d03f565b87ddbdc65aec118552495df36c4fab5 (plain)
1
2
3
<% Array(ipaddresses).zip(Array(server_names)).each do |ipaddress,host| -%>
  server <%= host %> <%= ipaddress %>:<%= Array(ports).collect {|x|x.split(',')}.flatten.join(",#{ipaddress}:") %> <%= Array(options).join(" ") %>
<% end %>