Skip to content

Latest commit

 

History

History
113 lines (80 loc) · 2.76 KB

README.md

File metadata and controls

113 lines (80 loc) · 2.76 KB

devpi

Build Status Puppet Forge Puppet Forge

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with devpi
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

Manages devpi - PyPI server and packaging/testing/release tool

Module Description

Installs devpi via pip, manages upstart/systemd script and service.

Setup

What devpi affects

  • Creates serverdir in /opt/devpi (configurable)
  • Creates user devpi (configurable)
  • Creates service devpi-server
  • Installs pip package devpi-server
  • Optionally installs pip package devpi-client

Setup Requirements

Requires python, pip and modern enough setuptools

Beginning with devpi

Install it using PMT:

puppet module install unibet-devpi

Usage

Usage in its simplest form:

class { '::devpi': }

If you want the client installed as well:

class { '::devpi':
  client => true
}

You may want to install devpi contained in a virtualenv in which case you could declare it as follows (using the stankevich-python module for virtualenv management):

$virtualenv = '/venv'

::python::virtualenv { $virtualenv:
  ensure     => present,
  systempkgs => false,
  timeout    => 0,
}

::python::pip { 'devpi-server':
  pkgname    => 'devpi-server==2.1.5',
  virtualenv => $virtualenv,
}

class { '::devpi':
  virtualenv  => $virtualenv
}

Setting custom port and host listener:

class { '::devpi':
  listen_host => '127.0.0.1',
  listen_port => 13141
}

Reference

The only external facing class should be "devpi". It uses the anchor pattern for class containment so you can form dependencies to Class['devpi'] and expect all resources declared within the devpi class to be realized.

Limitations

Only tested on EL6 and EL7

Development

We welcome all pull requests that comes with rspec tests covering the new functionality.

Tests can be executed locally using bundler:

bundle install
bundle exec rake lint
bundle exec rake validate
bundle exec rake spec