Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


tgw_uwsgi (1) Versions 1.0.0

Installs/Configures uWSGI application server.

cookbook 'tgw_uwsgi', '~> 1.0.0', :supermarket
cookbook 'tgw_uwsgi', '~> 1.0.0'
knife supermarket install tgw_uwsgi
knife supermarket download tgw_uwsgi
Quality 33%

tgw_uwsgi COOKBOOK

Build Status

uWSGI is a high performance application server framework for Python, Ruby, and other applications. This cookbook
compiles from source a modular installation of uWSGI. Using this approach allows for a tailored installation using
wrapper cookbooks.

The Debian configure recipe is somewhat reverse engineered from the uwsgi apt package, but set up in such a way to
allow flexible configuration.

Supported Platforms

Supported platforms: Ubuntu Server 14.04, 16.04


The resources that ship with this cookbook allow you to manage uWSGI applications from other cookbooks, particularly
wrapper cookbooks.


uwsgi_application 'some_application.conf' do
    source 'application_template.conf'
    action [:create, :enable]

The application name should not include a path, only the target file name. The attribute node['tgw_uwsgi']['tgw_uwsgi']['config']['directories']['apps_available']
contains the path where the target will be copied to. When using the :enable action, the attribute
node['tgw_uwsgi']['config']['directories']['apps_enabled'] specifies where the symlink will be created.

In a wrapper cookbook, if you wish to change the default locations of the apps_available and apps_enabled attributes,
use the node.set in your recipe before using the uwsgi_application resource. Your application configuration files
should be stored in the templates directory.


default['tgw_uwsgi']['version'] - Version to download and install.
default['tgw_uwsgi']['download_url'] - URL of source code.
default['tgw_uwsgi']['service'] - Service name to be created.

default['tgw_uwsgi']['core']['binary'] - File name of uWSGI core binary.
default['tgw_uwsgi']['core']['directory'] - Path where core binary and plugins will be installed.

default['tgw_uwsgi']['config']['directories']['etc'] = "/etc/uwsgi"
default['tgw_uwsgi']['config']['directories']['apps_available'] = "/etc/uwsgi/apps-available"
default['tgw_uwsgi']['config']['directories']['apps_enabled'] = "/etc/uwsgi/apps-enabled"
default['tgw_uwsgi']['config']['directories']['logs'] = "/var/log/uwsgi"
default['tgw_uwsgi']['config']['directories']['logs_app'] = "/var/log/uwsgi/app"
default['tgw_uwsgi']['config']['directories']['run'] = "/run/uwsgi"
default['tgw_uwsgi']['config']['directories']['run_app'] = "/var/run/uwsgi/app"
default['tgw_uwsgi']['config']['directories']['share'] = "/usr/share/uwsgi"
default['tgw_uwsgi']['config']['directories']['share_init'] = "/usr/share/uwsgi/init"
default['tgw_uwsgi']['config']['directories']['share_conf'] = "/usr/share/uwsgi/conf"

Control which plugins are compiled by setting each plugins' :compile attribute to true or false. See the
attributes/build-plugins.rb for a list of available plugins.



Include tgw_uwsgi in your node's run_list:

  "run_list": [

License & Authors

Copyright:: 2017 TGW Consulting, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

apt ~> 6.1.3
build-essential ~> 8.0.3
poise-python ~> 1.6.0
rsyslog ~> 5.1.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.


1.0.0 (2017-12-22)

  • Updated copyright to new owner name.

0.2.0 (2017-12-15)

  • ISSUE 2::Updated Rubocop to 0.52.0
  • Updated Test Kitchen to 1.19.2
  • Updated Kitchen Dokken to 2.6.6

0.1.0 (2017-11-30)

  • Supports downloading uWSGI source code and compiling core executable.
  • Supports configurable compilation of various modules.

Collaborator Number Metric

1.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Foodcritic Metric

1.0.0 failed this metric

FC121: Cookbook depends on cookbook made obsolete by Chef 14: tgw_uwsgi/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: tgw_uwsgi/recipes/prepare.rb:31
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

1.0.0 passed this metric

Testing File Metric

1.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

1.0.0 passed this metric