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

RSS

bq_uwsgi (1) Versions 0.1.0

Installs/Configures uWSGI application server.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'bq_uwsgi', '~> 0.1.0'
cookbook 'bq_uwsgi', '~> 0.1.0', :supermarket
knife cookbook site install bq_uwsgi
knife cookbook site download bq_uwsgi
README
Dependencies
Changelog
Quality 56%

BQ_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

Resources

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

Example

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

The application name should not include a path, only the target file name. The attribute node['bq_uwsgi']['bq_uwsgi']['config']['directories']['apps_available'] contains the path where the target will be copied to. When using the :enable action, the attribute node['bq_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.

Attributes

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

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

default['bq_uwsgi']['config']['directories']['etc'] = "/etc/uwsgi"
default['bq_uwsgi']['config']['directories']['apps_available'] = "/etc/uwsgi/apps-available"
default['bq_uwsgi']['config']['directories']['apps_enabled'] = "/etc/uwsgi/apps-enabled"
default['bq_uwsgi']['config']['directories']['logs'] = "/var/log/uwsgi"
default['bq_uwsgi']['config']['directories']['logs_app'] = "/var/log/uwsgi/app"
default['bq_uwsgi']['config']['directories']['run'] = "/run/uwsgi"
default['bq_uwsgi']['config']['directories']['run_app'] = "/var/run/uwsgi/app"
default['bq_uwsgi']['config']['directories']['share'] = "/usr/share/uwsgi"
default['bq_uwsgi']['config']['directories']['share_init'] = "/usr/share/uwsgi/init"
default['bq_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.

Usage

bq_uwsgi::default

Include bq_uwsgi in your node's run_list:

{
  "run_list": [
    "recipe[bq_uwsgi::default]"
  ]
}

License & Authors

Copyright:: 2017, Sean Michael Sullivan

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

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

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

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

BQ_UWSGI COOKBOOK CHANGELOG

0.1.0 (2017-11-30)

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

Collaborator Number Metric
            

0.1.0 failed this metric

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

Contributing File Metric
            

0.1.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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 passed this metric

License Metric
            

0.1.0 passed this metric

No Binaries Metric
            

0.1.0 passed this metric

Publish Metric
            

0.1.0 passed this metric

Supported Platforms Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.1.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 https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number