Forge Home

puppet_common

Puppet Module for common things

12,275 downloads

8,987 latest version

3.8 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.6 (latest)
  • 0.1.5
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Apr 12th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'sjoeboo-puppet_common', '0.1.6'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add sjoeboo-puppet_common
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install sjoeboo-puppet_common --version 0.1.6

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

sjoeboo/puppet_common — version 0.1.6 Apr 12th 2016

puppet_common

Most just facts I tend to want around in puppet deployments?

facts

hostname_base

contains the hostname of the node, with trailing digits stripped.

[root@puppetmaster01 facter]# facter -p |grep hostname_base
hostname_base => puppetmaster

born_on

RedHat/Centos Finds out when the basesystem rpm was installed and turns that into a installation date. Will not work well on systems build from a golden image!

born_on => 2016-03-08

classes

Finds the classes.txt file, and parses it into an array of classes on the system as of the last puppet run. roles and profiles get dropped from this list.

classes_all

A copy of classes without roles or profiles remove, aka, the whole shebang

roles

Takes classes fact and extracts classes starting with role

profiles

Takes classes fact and extracts classes starting with profile

rpm_inventory

RedHat/CentOS Generates a md5sum of the installed packages. Allows you to quickly compare one system to another or check that 2 systems have identical packages (names and versions) installed.