Skip to content

mfranco/chef-django-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chef-django-ubuntu

A set of recipes to provision an ubuntu server using Chef.

The main goal is provisioning and deploying a django app.

Original idea from bsnux chef-mint.

chef-solo is used for simplicity because we only want to provide one machine. However, you can adapt the recipes to provision n machines using regular Chef.

OPSCODE offers a complete set of independient operating system recipes.

Requirements

Installation

  1. Clone current repo.

  2. If Chef is not installed on your machine, you can execute:

    $ sudo ./init.sh

Components

  1. web.json: web stack attributes

  2. web.rb: web stack configuration file

  3. cookbooks/main/ : system setup cookbooks

  4. cookbooks/nginx/ : nginx setup cookbooks

  5. cookbooks/python/ : python basic stuff

  6. cookbooks/gunicorn/ : gunicorn install and configuration

Usage

Web stack:

$ cd chef-django-ubuntu

$ sudo chef-solo -c web.rb -j web.json

Postgresq: $ cd chef-django-ubuntu

$ sudo chef-solo -c web.rb -j pgdb.json

See also

Chef Solo tutorial: Managing a single server with Chef

Complete and official cookbook repository for chef

Python cookbook

ngnix cookbook

gunicorn cookbook

Postgresql cookbook

Setting up Django with Green Unicorn, nginx, supervisord and fabric on CentOS 5.5

Deploying Django with nginx and gunicorn

JasonGiedymin / nginx-init-ubuntu

About

chef recipients for deploy a django stack on ubuntu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published