summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorZack Smith <acidprime@wallcity.org>2012-10-10 17:13:15 -0700
committerZack Smith <acidprime@wallcity.org>2012-10-10 17:13:15 -0700
commit3d71b9093a8600d465f373de594378b40bd78c83 (patch)
treecaba811a27f5b967f2b7e0d01ab74f319b851bc4 /templates
parent1b18d7d86174b3f74ddfb0021bbc658d3a9ece47 (diff)
parentc09e5a07cef578e1017af546e315f1c3826bf9a7 (diff)
Merge pull request #10 from hunner/add_ports
Allow multiple ports to be passed
Diffstat (limited to 'templates')
-rw-r--r--templates/haproxy_config_block.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/haproxy_config_block.erb b/templates/haproxy_config_block.erb
index 8737dfc..42d0e06 100644
--- a/templates/haproxy_config_block.erb
+++ b/templates/haproxy_config_block.erb
@@ -1,5 +1,5 @@
-listen <%= name %> <%= virtual_ip %>:<%= virtual_ip_port %>
+listen <%= name %> <%= virtual_ip %>:<%= Array(ports).join(",#{virtual_ip}:") %>
<% haproxy_config_options.sort.each do |key, val| -%>
<% if val.is_a?(Array) -%>
<% val.each do |item| -%>