Forge Home

pmtprovider

Custom package provider for managing puppet modules

9,684 downloads

7,978 latest version

4.3 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.0 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Oct 30th 2015
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet >=3.7.0 <5.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'unibet-pmtprovider', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install unibet-pmtprovider --version 0.2.0

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/pmtprovider — version 0.2.0 Oct 30th 2015

pmtprovider

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 pmtprovider
  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

This is a Puppet custom provider for the package type called 'pmt', that allows you to manage installation, removal and upgrade of puppet modules.

Module Description

The provider shells out puppet using the puppet module face, the reason for not using the puppet module api directly in code was that the puppet execution responsible for ensuring state could inadvertently carry over configuration that affects what the state should look like. For example, --module_repository is set based on configuration or command line arguments to the puppet agent | apply execution, by shelling out the puppet command we have more flexibility in that regard since we can just parameterize the execution on our own.

Setup

What pmtprovider affects

  • A provider 'pmt' to the package resource type

Beginning with pmtprovider

Installing the module using the pmt:

puppet module install unibet-pmtprovider

Usage

Some sample usages using the provider

Installing the puppetlabs-apache puppet module:

  package { 'puppetlabs-apache':
    ensure   => present,
    provider => pmt
  }

Installing puppetlabs-apache in a custom location:

  package { 'puppetlabs-apache':
    ensure   => present,
    provider => pmt,
    install_options => [
      {
        '--modulepath' => '/custom/location'
      }
    ]
  }

Installing company-privatemodule using a custom forge:

  package { 'company-privatemodule':
    ensure   => present,
    provider => pmt,
    install_options => [
      {
        '--module_repository' => 'https://forge.company.example.com'
      }
    ]
  }

The provider also supports version pinning and the use of symbols such as latest and absent.

Reference

See usage

Development

If you want to contribute please send in a pull request, eventually when we have tests in place we'd prefer that your changes passes the spec tests before it gets merged