summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-10-11 22:32:01 +0200
committervarac <varacanero@zeromail.org>2013-10-11 22:32:01 +0200
commit4a75cd70b50969023c507b5c9ec2e8c36142f706 (patch)
tree92cec31bf3f1c31dfebc47535589a2dc95210f63
parentf2cd05902a9dd64beb1417ddb1d9994c4dc29b14 (diff)
/etc/haproxy/haproxy.cfg changed randomly (Feature #4111)
-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