From 4a75cd70b50969023c507b5c9ec2e8c36142f706 Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 11 Oct 2013 22:32:01 +0200 Subject: /etc/haproxy/haproxy.cfg changed randomly (Feature #4111) --- puppet/modules/site_webapp/templates/haproxy_couchdb.cfg.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3