<%
=begin

Cookbook Name:: nginx
Attributes:: default

Author:: Damian Curry (<damian.curry@nginx.com>)

Copyright (c) 2017-present, NGINX, Inc.

This source code is licensed under the Apache License (v2.0) found in the LICENSE file in
the root directory of this source tree.

=end
%>

upstream <%= node['nginx']['upstream'] %> {
   zone <%= node['nginx']['upstream'] %> 64k;
   <% @hosts.each do |node| -%>
   server <%= node %>;
   <% end %>
}
