Forge Home

django_app

Puppet module to run vhost for django application

9,351 downloads

8,903 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

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'gajdaw-django_app', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add gajdaw-django_app
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install gajdaw-django_app --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

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.