Forge Home

backport_package_settings

Backport package_settings feature to older puppet versions

12,028 downloads

7,154 latest version

4.4 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.0.3 (latest)
  • 0.0.2
  • 0.0.1
released Sep 16th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'ptomulik-backport_package_settings', '0.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ptomulik-backport_package_settings
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ptomulik-backport_package_settings --version 0.0.3

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

ptomulik/backport_package_settings — version 0.0.3 Sep 16th 2016

ptomulik-backport_package_settings

Build Status

Discontinued!!

This project is no longer developed. Use ptomulik-backports instead.

Table of Contents

  1. Overview
  2. Setup
  3. Development

Overview

Backport package_settings to older versions of Puppet.

The package resource has a package_settings feature and property in Puppet 3.5.0 and later. The property, however, is missing in older puppet versions. This module brings the package_settings feature back to any older version of Puppet if it doesn't have one.

Setup

Setup Requirements

You must enable pluginsync in your puppet.conf.

Beginning with backport_package_settings

To backport package_settings put the following line in front of your package provider:

require 'puppet/backport/type/package/package_settings'

To use package_settings, your provider should implement at least these methods:

  • package_settings
  • package_settings=(value)
  • package_settings_insync?(should,is)

It may also optionally implement the following methods:

  • package_settings_validate(value),
  • package_settings_munge(value),
  • package_settings_should_to_s(should,newvalue),
  • package_settings_is_to_s(should,currentvalue),
  • package_settings_change_to_s(currentvalue,newvalue)

Development

The project is held at github: