summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorEugene Kirpichov <ekirpichov@gmail.com>2012-08-28 18:52:05 -0700
committerEugene Kirpichov <ekirpichov@gmail.com>2012-09-05 19:17:08 -0700
commitde44dd1098d99f2f070d0db13ff5e0542be146e1 (patch)
treeed823611388778b0440420c4b965708b310fc992 /templates
parente5e01c43c33ab5f139449477c9997cb2ee21ea74 (diff)
Support for one-pass mode.
Diffstat (limited to 'templates')
-rw-r--r--templates/haproxy_balancermember.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/haproxy_balancermember.erb b/templates/haproxy_balancermember.erb
index f85137d..fca4f0b 100644
--- a/templates/haproxy_balancermember.erb
+++ b/templates/haproxy_balancermember.erb
@@ -1,4 +1,5 @@
- server <%= server_name %> <%= balancer_ip %>:<%= balancer_port %> <%
+<% for @ip,@host in Array(@balancer_ip).zip(Array(@server_name)) %> server <%= @host %> <%= @ip %>:<%= balancer_port %> <%
items = balancermember_options
items = [items] unless balancermember_options.instance_of? Array
items.each do |item| %> <%= item %><% end %>
+<% end %>