pkg_updates

contributions requested
A collection of facts for reporting packages to be updated.

8,656 downloads

7,973 latest version

4.0 quality score

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.1.4 (latest)
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Apr 14th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'petems-pkg_updates', '0.1.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add petems-pkg_updates
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install petems-pkg_updates --version 0.1.4

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

petems/pkg_updates — version 0.1.4 Apr 14th 2016

pkg_updates

This module provides custom facts which return the packages with avaliable updates for various package management systems.

It is heavily based on https://github.com/puppetlabs/puppetlabs-pkgupdates

Warning

This will add a few seconds of time to the start and end of your Puppet runs, as it will be running a command that can take some time. Bear that in mind!

Facts

pkg_updates

Hash. A hash of the packages and their avaliable updates:

{"NetworkManager.x86_64" => {"current"=>"1.0.6-27.el7", "update"=>"1.0.6-29.el7_2"}}

pkg_updates_available

Boolean. Returns true if pkg_updates is not nil

pkg_updates => {"NetworkManager.x86_64" => {"current"=>"1.0.6-27.el7", "update"=>"1.0.6-29.el7_2"}}

Means

pkg_updates_available => true

Example Values