Skip to content

jhermann/devpi-puppet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo devpi-puppet

Apache 2.0 licensed

Table of Contents

Overview

This is a Puppet module to install devpi-server behind a NginX proxy. See also debianized-devpi for building the required devpi package. On non-Debian platforms, you can use fpm or similar tools to build such a package.

Screenshot of the 'default' theme
Screenshot of the 'default' theme

TL;DR

If you just want a working 'devpi-server' on your machine proxied by NginX on port 31415 and watched by supervisord, then call these commands, after either installing the devpi package via dpkg -i, or providing it in a source registered with APT:

git clone "https://github.com/jhermann/devpi-puppet.git"
cd devpi-puppet
sudo ./apply.sh

You can also pass --noop and other Puppet options to the script. It installs Puppet if that's missing, and then applies the node definition contained in site.pp.

Using the module in detail

Parameters

All the possible parameters are documented in init.pp and nginx.pp. For creating a simple HTML rendering, use this command:

rdoc -q -SN1 -E pp=rb >doc/index.html manifests/init.pp manifests/nginx.pp

Importing the module into your project

If for whatever reason you don't want to use tools like the puppet module command or librarian-puppet, the following shows how to use git subtree (as opposed to git submodule) to import this repository into your modules directory.

First, and once only, add devpi-puppet to your remotes and add a subtree named modules/devpi:

git remote add -f devpi-puppet "https://github.com/jhermann/devpi-puppet.git"
git remote update && git subtree add --prefix modules/devpi devpi-puppet master --squash

Then to later update the subtree, use this:

git remote update && git subtree pull --prefix modules/devpi devpi-puppet master --squash

You can also use a tag name instead of master, to get a specific release.

Tested platforms

This module is known to work on:

  • Debian 7.6 (wheezy)
  • Ubuntu 12.04 (precise)
  • Ubuntu 14.04 (trusty)

Related projects

References