summaryrefslogtreecommitdiff
path: root/puppet/modules/haproxy/templates/haproxy_balancermember.erb
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/haproxy/templates/haproxy_balancermember.erb')
m---------puppet/modules/haproxy0
-rw-r--r--puppet/modules/haproxy/templates/haproxy_balancermember.erb3
2 files changed, 3 insertions, 0 deletions
diff --git a/puppet/modules/haproxy b/puppet/modules/haproxy
deleted file mode 160000
-Subproject af322a73c013f80a958ab7d5d31d0c75cf6d052
diff --git a/puppet/modules/haproxy/templates/haproxy_balancermember.erb b/puppet/modules/haproxy/templates/haproxy_balancermember.erb
new file mode 100644
index 00000000..1d03f565
--- /dev/null
+++ b/puppet/modules/haproxy/templates/haproxy_balancermember.erb
@@ -0,0 +1,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 %>