Skip to content

blackrobot/chef-uwsgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Installs and configures uWSGI Emperor.

Requirements

Platforms

  • Ubuntu 12.04

Cookbooks

Requires Opscode's python cookbook.

Attributes

  • node['uwsgi']['config_path'] - the path to keep vassal configuration files.
  • node['uwsgi']['log_path'] - the path to write the uwsgi log file.

Recipes

default

Installs or upgrades to the package libssl10.9.8, then uses pip to install uwsgi, finally calling the upstart recipe.

upstart

Creates an upstart configuration file from the uwsgi.conf.erb template, and reloads the initctl configuration. Next, starts uwsgi as a service, and enables it.

Resources/Providers

Actions

The default action is :enable.

  • :enable - enables the config file
  • :disable - disables the config file

Attribute Parameters

  • :name - string - the name of the configuration file
  • :path - string - the full directory path to the configuration file to be symlinked into the uwsgi config path

Examples

# ln -s /path/to/my/site/config/my_config.ini /etc/uwsgi/my_config.ini
uwsgi "my_config.ini" do
  action :enable
  path "/path/to/my/site/config"
end
# rm /etc/uwsgi/my_config.ini
uwsgi "my_config.ini" do
  action :disable
end

Usage

Just add recipe[uwsgi-emperor] to your node, or role.

{ "run_list": [ "recipe[uwsgi-emperor]" ] }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages