tkishel / pe_lookup

Like the 'puppet lookup' command, but with Classifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Like the 'puppet lookup' command, but with Classifier

License:Apache License 2.0


Languages

Language:Ruby 100.0%