Forge Home

pkg_updates

A collection of facts for reporting packages to be updated.

8,488 downloads

7,860 latest version

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

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