diff --git a/recipes/app_lb.rb b/recipes/app_lb.rb index 18a589e8..bca895d0 100644 --- a/recipes/app_lb.rb +++ b/recipes/app_lb.rb @@ -40,6 +40,9 @@ {:ipaddress => server_ip, :hostname => member['hostname']} end +pool_members.sort! do |a,b| + a[:hostname].downcase <=> b[:hostname].downcase +end pool = ["options httpchk #{node['haproxy']['httpchk']}"] if node['haproxy']['httpchk'] servers = pool_members.uniq.map do |s|