pe_lookup

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

Tom Kishel

tkishel

2,277 downloads

1,768 latest version

5.0 quality score

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
  • RedHat
    ,
    CentOS
    ,
    Ubuntu

Start using this module

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