Giter Site home page Giter Site logo

puppet-django's Introduction

puppet-django

  • A module to provides django deploy app

Requirements

Usage

  • include the django class
include django
  • call define django::deploy
django::deploy { 'app':  
      clone_path          => '/path/to/clone/app',
      venv_path           => '/path/to/create/virtualenv',
      git_url             => '[email protected]:host/app.git',
      user                => 'user_to_install',
      gunicorn_app_module => "app.wsgi:application",
      migrate             => true,
      collectstatic       => true,
      fixtures            => 'test_data debug_data'
}

django::deploy arguments

$venv_path # path to create virtualenv (required)
$clone_path # path to clone your repository (required)
$git_url # url of your git repository (required)
$user # user to install and run your app (required)
$gunicorn_app_module # python path to your wsgi file and your call (required)
$project_path # path in your clone repository where located django project (optional)
$requirements # path to your requirements files in your clone repository (defaults to requirements.txt)
$settings_local # name and path relative of your project path
$settings_local_source # puppet server path to copy your extra settings
$migrate # run migrate on deploy (defaults to false)
$collectstatic # run collectstatic on deploy (default to false)
$fixtures # install fixtures on deploy (default to false)
# gunicorn configs
$bind = "0.0.0.0:8000"
$backlog = undef
$workers = "multiprocessing.cpu_count() * 2 + 1"
$worker_class = undef
$worker_connections = undef
$max_requests = undef
$timeout = undef
$graceful_timeout = undef
$keepalive = undef
$limit_request_line = undef
$limit_request_fields = undef

puppet-django's People

Contributors

arloc avatar

Watchers

 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.