Forge Home

pe_lookup

Lookup a key defined in Hiera and/or the Classifier.

3,283 downloads

2,525 latest version

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

  • 1.5.0 (latest)
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Apr 15th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x
  • Puppet > 5.0.0 < 7.0.0
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'tkishel-pe_lookup', '1.5.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add tkishel-pe_lookup
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install tkishel-pe_lookup --version 1.5.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

tkishel/pe_lookup — version 1.5.0 Apr 15th 2020

pe_lookup

Table of Contents

  1. Description - What the module does and why it is useful
  2. Setup - Getting started with this module
  3. Usage - Command parameters and how to use them
  4. Reference - How the module works and how to use its output
  5. Limitations - Supported infrastructures and versions

Description

This module provides a Puppet command puppet pe lookup that outputs a key (class parameter) defined in Hiera and/or the Classifier.

Setup

Install this module on the Primary Master.

Usage

Run the puppet pe lookup <KEY> command as root on the Primary Master.

Parameters

<KEY>

String. The key to lookup.

--node

String. The node to lookup. Defaults to the node where the command is run.

--pe_environment

String. The environment of the node to lookup. Defaults to 'production'.

Reference

This command uses code used by puppet infrastructure recover_configuration.

Output

[root@pe-master ~] puppet pe lookup puppet_enterprise::profile::console::delayed_job_workers
# Node: pe-master.puppetdebug.vlan
# Key:  puppet_enterprise::profile::console::delayed_job_workers

# Key found in Hiera:

---
puppet_enterprise::profile::console::delayed_job_workers: 1


# Key found in the Classifier:

{
  "puppet_enterprise::profile::console::delayed_job_workers": 2
}

Limitations

Version Support

Support is limited to the following versions:

  • PE 2018.x.x
  • PE 2019.x.x