Skip to content

hfeeki/puppet-django

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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             => 'git@github.com: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published