Giter Club home page Giter Club logo

puppet-uwsgi's Introduction

Author	: illumin-us-r3v0lution <[email protected]> for IDCubed <idcubed.org>
Version	: 0.1
Licence : LGPL v3

Basic module for configuring and managing uwsgi as a service, via puppet.

We're running uwsgi in emperor mode, allowing one uwsgi instance to monitor and
manage many uwsgi applications. see http://projects.unbit.it/uwsgi/wiki/Emperor
for more details.

here is an example uwsgi.ini for a django app:

    [uwsgi]
    socket = 127.0.0.1:3034
    threads = 40
    master = 1
    env = DJANGO_SETTINGS_MODULE=myapp.settings
    module = django.core.handlers.wsgi:WSGIHandler()
    chdir = /var/www/python/MyInstance/my_app


## Class: uwsgi ##

Parameters (used in uwsgi.conf.erb) :
       * $uwsgi_user. Defaults to 'www-data'. 

Install uwsgi.
Create config directories :
	* /etc/uwsgi/apps-enabled
	* /etc/uwsgi/apps-available

Provide 1 definition : 
	* uwsgi::app (http app)

Templates:
	- uwsgi.ini.erb => /etc/uwsgi/uwsgi.ini


###  Define: uwsgi::app ###

Install a uwsgi app in /etc/uwsgi/apps-available (and symlink in /etc/uwsgi/apps-enabled). 

Parameters :
	* ensure: typically set to "present" or "absent". Defaults to "present"
	* content: app definition (should be a template).


## CHANGELOG ##
- v0.1 : * initial release

puppet-uwsgi's People

Contributors

iluminite avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.