Giter Site home page Giter Site logo

puppet-uwsgi's Introduction

uwsgi

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

This module is most flexible and easiest 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.

  • config - Valid uWSGI configuration options for the uWSGI server. It is a hash, so any uWSGI valid key-value pairs as parameters.

Examples

---
classes:
  - uwsgi

# override default params
uwsgi::onboot: manual

# Add extra configs to default wsgi config
uwsgi::config:
  chmod-socket: 664

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 configuration options specific to an app. It is a hash, so any uWSGI valid key-value pairs as 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

puppet-uwsgi's People

Contributors

vaijab avatar mastermind2k avatar salmonmoose avatar geoffwilliams avatar grubernaut avatar zstumgoren avatar

Stargazers

James Remeika avatar  avatar Philipp Borgers avatar

Watchers

 avatar  avatar  avatar

puppet-uwsgi's Issues

missing license

It would be great if a license was added. MIT would be greatly preferred!

Use osfamily fact rather than operatingsystem fact

Consider using $::osfamily rather than $::operatingsystem when configuring parameters. See: http://jenkner.org/blog/2013/03/27/use-osfamily-instead-of-operatingsystem/

My particular issue is installing uwsgi on OracleLinux, which is a derivative of RedHat.

case $::osfamily {
    RedHat: {
      $package_name   = 'uwsgi'
      $service_name   = 'uwsgi'
      $run_user       = 'uwsgi'
      $app_config_dir = '/etc/uwsgi.d'
    }
    Debian: {
      $package_name   = 'uwsgi'
      $service_name   = 'uwsgi'
      $upstart_script = '/etc/init/uwsgi.conf'
      $run_user       = 'www-data'
      $app_config_dir = '/etc/uwsgi/apps-enabled'
    }
    default: {
      fail("Module ${module_name} is not supported on ${::osfamily}")
    }

Add support for systemd

Centos 7+, and Ubuntu 15.04+ have replaced upstart, with systemd scripts. Could we add support for systemd?

Unable to locate package uwsgi-plugin-python debian 12

when including uwsgi class and running puppet on a debian 12 (bookworm) server,
i get this error :
Unable to locate package uwsgi-plugin-python
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install uwsgi-plugin-python' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Unable to locate package uwsgi-plugin-python

could you add the package uwsgi-plugin-python3 which replaces uwsgi-plugin-python in file manifest/init.pp

Thanks for your help

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.