Skip to content

Instantly share code, notes, and snippets.

@jarshwah
Created December 15, 2015 14:10
Show Gist options
  • Save jarshwah/aea956737f0a7f52d68d to your computer and use it in GitHub Desktop.
Save jarshwah/aea956737f0a7f52d68d to your computer and use it in GitHub Desktop.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template uwsgi/uwsgi.ini.erb:
Filepath: /etc/puppet/modules/uwsgi/templates/uwsgi.ini.erb
Line: 16
Detail: undefined method `sort_by' for #<String:0x2a4870f8>
at /etc/puppet/modules/uwsgi/manifests/init.pp:148 on node node.domain.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
uwsgi::emperor_options:
log-master = 'true'
log-reopen = 'true'
log-4xx = 'true'
log-5xx = 'true'
log-zero = 'true'
touch-logreopen = 'true'
#
# This file is managed by puppet class 'uwsgi'
#
# uWSGI main process configuration
#
[uwsgi]
socket = <%= @socket %>
pidfile = <%= @pidfile %>
emperor = <%= @app_directory %>
emperor-tyrant = <%= @tyrant %>
master = true
autoload = true
log-date = true
logto = <%= @log_file %>
<%- if @emperor_options -%>
<%- @emperor_options.sort_by{|k,v| k}.each do |key, value| -%>
<%= key %> = <%= value %>
<%- end -%>
<%- end -%>
class uwsgi (
...
$emperor_options = undef
) {
# stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment