@@ -1,3 +1,4 @@
+# MANAGED BY PUPPET
<%
# sorting ip addresses in ascending order is more efficient for nginx - so we need
# to convert them to numbers first via IPAddr
map <%= @string %> $<%= @name %> {
<% if @hostnames -%>
hostnames;
<% if @super_user -%>
user <%= @daemon_user %>;
<% end -%>
upstream <%= @name %> {
<% if @upstream_cfg_prepend -%><% @upstream_cfg_prepend.sort_by{|k,v| k}.each do |key,value| %>
<% if value.is_a?(Hash) -%><% value.each do |subkey,subvalue| -%>
@@ -1,4 +1,4 @@
-
server {
<%- if @listen_ip.is_a?(Array) then -%>
<%- @listen_ip.each do |ip| -%>
<% if @rewrite_www_to_non_www -%>
<%- @server_name.each do |s| -%>