django_app

Puppet module to run vhost for django application

Włodzimierz Gajda

gajdaw

8,812 downloads

8,395 latest version

3.1 quality score

Version information

  • 0.3.0 (latest)
  • 0.2.0
  • 0.1.2
  • 0.1.1
released Feb 25th 2015
This version is compatible with:
  • Puppet 3.x
  • Ubuntu

Start using this module

Documentation

gajdaw/django_app — version 0.3.0 Feb 25th 2015

Puppet Module

gajdaw/django_app

Table of Contents

  1. Overview
  2. Setup
  3. Usage
  4. Limitations
  5. Tests

Overview

The module to create virtual host for an application written in django.

The module exposes django_app::vhost define that easies the task of defining virtual hosts.

Setup

To install the module run:

sudo puppet install module gajdaw-django_app

Usage

Supposing that your application is stored in:

/home/vagrant/reptiles-django-app/reptiles/reptiles

To be more exact, the path to wsgi.py file is supposed to be:

/home/vagrant/reptiles-django-app/reptiles/reptiles/wsgi.py

If you want to run a virtual host available under http://reptiles.lh then use the following manifest:

include django_app

django_app::vhost { 'reptiles.lh':
     docroot => '/home/vagrant/reptiles-django-app/reptiles/reptiles'
}

You will find more examples in examples/ directory.

Limitations

The module was tested on all the platforms that appear in metadata.json.

Tests

Logs are available in gh-pages branch.