Code Monkey home page Code Monkey logo

django-forge's Introduction

django-forge

Quickstart

For those with short attention spans, the following creates a full mirror of the Puppet Forge:

$ virtualenv forge
$ source forge/bin/activate
$ pip install django-forge
$ django-admin.py migrate --noinput --settings=forge.settings.dev
$ django-admin.py sync_forge --settings=forge.settings.dev
$ django-admin.py runserver --settings=forge.settings.dev

Point your Puppet configuration file (/etc/puppet.conf or ~/.puppet/puppet.conf) to the forge:

[main]
    module_repository = http://localhost:8000

You should now be able search and install with puppet module.

Publishing can be done with interface at /admin/ -- create an account with:

$ ./manage.py createsuperuser

Background

The Puppet Forge (https://forge.puppetlabs.com/) is a central authority for finding and installing Puppet modules. This package implements the first version (v1) and third version (v3) of the JSON web services necessary to house (or mirror) a private, stand-alone version of the Forge.

Simplicity and ease-of-use are goals of this package.

v1

This version of the Puppet Forge is undocumented, and the resources here were reverse-engineered from the behavior of the current API endpoints (which are buried in the Puppet module tool source code). Care is taken to try and imitate the behavior of this API whenever possible.

v3

Puppet Labs fully documented and shared the v3 standard with the community, see https://forgeapi.puppetlabs.com for further details. This package only implements the subset of this API necessary to talk to open source Puppet 3.6+ clients.

django-forge's People

Contributors

jbronn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-forge's Issues

Consider using the official Forge API

Though we maintain the legacy (v1) API used by the puppet module tool, it's meant solely for that tool.

We have an official API that tools are meant to built against including the next version of the puppet module tool. Once that's released, we'll begin to deprecate the v1 API.

That'll be a long process so you have plenty of time but consider updating your Forge to use https://forgeapi.puppetlabs.com. Feel free to email me ryan at puppetlabs.com if you have any questions.

Support fixed dependencies and Puppet Labs' shorthand ranges

Currently dependency calculation is borked when a module has a fixed version as one of it's dependencies in its Modulefile, e.g.:

  • dependency 'puppetlabs/apache', '0.6.0'
  • dependency 'elasticsearch/elasticsearch', '0.2.4'

Moreover, there needs to be support for Puppet Labs' non-standard extension to semantic version range specifications, e.g., 3.x or 4.1.x.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.