Giter VIP home page Giter VIP logo

ansible-gunicorn's Introduction

ansible-gunicorn

An Ansible role for installing and configuring gunicorn. Provides the Restart gunicorn handler to reload gunicorn when you install/update your app.

Role Variables

  • gunicorn_start_on - start on string for Upstart, or systemd WantedBy (default: "local-filesystems and net-device-up IFACE!=lo")
  • gunicorn_version - version of gunicorn to install (default: "19.2.1")
  • gunicorn_user - user to run gunicorn as. will create if doesn't exist. (default: "gunicorn")
  • gunicorn_app_name - name of app which will be used as the name of the service (default "gunicorn")
  • gunicorn_dynamic_workers - dynamically generate workers based on the number of CPUs. This overrides the value of gunicorn_workers (default: False).
  • gunicorn_cpu_coefficient - Coefficient for scaling workers based on CPU. When this value is set along with gunicorn_dynamic_workers, gunicorn will fork (gunicorn_cpu_coefficient * # of CPUs) + 1 workers (default: 2).
  • gunicorn_workers - number of workers to pre-fork. This value will be overridden if gunicorn_dynamic_workers is True (default: 8).
  • gunicorn_accesslog - access log file location (default: "-")
  • gunicorn_errorlog - error log file location (default: "-")
  • gunicorn_syslog - send stdout and stderr output to syslog (default: True)
  • gunicorn_bind - address and port to bind to (default: "127.0.0.1:8000")
  • gunicorn_reload - reload after each request (default: False)
  • gunicorn_loglevel - log level (default: "info")
  • gunicorn_app_dir - where to chdir into before loading app (required)
  • gunicorn_wsgi - module to import containing application (required)
  • gunicorn_timeout - Workers silent for more than this many seconds are killed and restarted. (default: 30).

Example Playbook

See the examples directory. Example will serve a small app at http://localhost:8000/.

ansible-gunicorn's People

Contributors

hectcastro avatar flibbertigibbet avatar tnation14 avatar sharph avatar rbreslow avatar

Watchers

James Cloos 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.