Installs and configures uWSGI Emperor.
- Ubuntu 12.04
Requires Opscode's python
cookbook.
node['uwsgi']['config_path']
- the path to keep vassal configuration files.node['uwsgi']['log_path']
- the path to write the uwsgi log file.
Installs or upgrades to the package libssl10.9.8
, then uses pip
to
install uwsgi
, finally calling the upstart
recipe.
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.
The default action is :enable
.
:enable
- enables the config file:disable
- disables the config file
: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
# 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
Just add recipe[uwsgi-emperor]
to your node, or role.
{ "run_list": [ "recipe[uwsgi-emperor]" ] }