Forge Home

devpi

Puppet module to manage python devpi repositories

16,823 downloads

12,856 latest version

3.7 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.2.1 (latest)
  • 0.2.0
  • 0.1.15
  • 0.1.10
  • 0.1.9
  • 0.1.0
released Mar 9th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'unibet-devpi', '0.2.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add unibet-devpi
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install unibet-devpi --version 0.2.1

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

unibet/devpi — version 0.2.1 Mar 9th 2016

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