项目作者: jhermann

项目描述 :
:truck: A puppet module to install devpi-server behind a NginX proxy
高级语言: Puppet
项目地址: git://github.com/jhermann/devpi-puppet.git
创建时间: 2014-09-03T09:36:37Z
项目社区:https://github.com/jhermann/devpi-puppet

开源协议:Apache License 2.0

下载


devpi-puppet" class="reference-link">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:

  1. git clone "https://github.com/jhermann/devpi-puppet.git"
  2. cd devpi-puppet
  3. 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:

  1. 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:

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

Then to later update the subtree, use this:

  1. 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)

References