#
# This file is managed by puppet class 'uwsgi'
#
# uWSGI main process configuration
#
[uwsgi]
<% if @socket -%>
socket = <%= @socket %>
<% end -%>
plugins-dir <%= scope.lookupvar('uwsgi::plugins_directory') %>
pidfile = <%= @pidfile %>
emperor = <%= @app_directory %>
emperor-tyrant = <%= @tyrant %>
master = true
autoload = true
log-date = true
<% if @log_file -%>
logto = <%= @log_file %>
<% end -%>
<%
if @emperor_options
  @emperor_options.sort.each do |key, value|
-%>
<%= key %> = <%= value%>
<%
  end
end
-%>

#
# This file is managed by puppet class 'uwsgi'
#
# uWSGI main process configuration
#
[uwsgi]
<% if @socket -%>
socket = <%= @socket %>
<% end -%>
plugin-dir <%= scope.lookupvar('uwsgi::plugins_directory') %>
pidfile = <%= @pidfile %>
emperor = <%= @app_directory %>
emperor-tyrant = <%= @tyrant %>
master = true
autoload = true
log-date = true
<% if @log_file -%>
logto = <%= @log_file %>
<% end -%>
<%
if @emperor_options
  @emperor_options.each do |key, value|
-%>
<%= key %> = <%= value%>
<%
  end
end
-%>

Fix plugin dir and remove sorting
Fix plugin dir and remove sorting
