summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--puppet/modules/site_webapp/templates/haproxy_couchdb.cfg.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/puppet/modules/site_webapp/templates/haproxy_couchdb.cfg.erb b/puppet/modules/site_webapp/templates/haproxy_couchdb.cfg.erb
index 914a964e..1fa01b96 100644
--- a/puppet/modules/site_webapp/templates/haproxy_couchdb.cfg.erb
+++ b/puppet/modules/site_webapp/templates/haproxy_couchdb.cfg.erb
@@ -13,7 +13,7 @@ listen bigcouch-in
default-server inter 3000 fastinter 1000 downinter 1000 rise 2 fall 1
<%- if @haproxy['servers'] -%>
-<%- @haproxy['servers'].each do |name,server| -%>
+<%- @haproxy['servers'].sort.each do |name,server| -%>
<%- backup = server['backup'] ? 'backup' : '' -%>
# <%=name%>
server couchdb_<%=server['port']%> <%=server['host']%>:<%=server['port']%> <%=backup%> weight <%=server['weight']%> check