Forge Home

django_app

Puppet module to run vhost for django application

10,030 downloads

9,433 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

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.