Forge Home

uwsgi

Puppet module for uWSGI server and apps management

11,620 downloads

11,620 latest version

3.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.1 (latest)
released Aug 4th 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'zooz-uwsgi', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add zooz-uwsgi
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install zooz-uwsgi --version 0.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: hiera, wsgi, uwsgi

Documentation

zooz/uwsgi — version 0.0.1 Aug 4th 2013

uwsgi

This module installs and configures uWSGI Emperor service. If you want to configure and run uWSGI apps, see uwsgi::app class.

This module is most flexible and most easier to manage when used with hiera.

Classes

uwsgi

Parameters

  • package - used to specify what version of the package should be used. Valid values: installed, absent or specific package version. Default: installed. Note: Puppet cannot downgrade packages.

  • service - service state. Valid values: running or stopped. Default: running.

  • onboot - whether to enable or disable the service on boot. Valid values: true, false or manual. Default: true.

Examples

---
classes:
  - uwsgi

uwsgi::app

This class allows you to configure uWSGI apps.

Parameters

  • ensure - Determines the state of the application configuration. Default: present. Valid values: present or absent.

  • config - Valid uwsgi app specific configuration. It is a hash, so any uwsgi valid key-value pairs parameters.

  • uid - User name to run uwsgi process on for this app. User must exist. Default: www-data for Ubuntu/Debian and uwsgi for Fedora/RedHat.

  • gid - User group name to run uwsgi process on for this app. Group must exist. Default: www-data for Ubuntu/Debian and uwsgi for Fedora/RedHat.

Examples

---
classes:
  - uwsgi::app

uwsgi::app:
  'graphite':
    ensure: 'present'
    uid: '_graphite'
    gid: '_graphite'
    config:
      socket: ':20010'
      processes: 4
      wsgi-file: '/usr/share/graphite-web/graphite.wsgi'
      plugins: python

Authors