Forge Home

puppet_lookup

Task that runs 'puppet lookup'

6,241 downloads

6,241 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.0 (latest)
released Sep 27th 2018
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
  • , , ,
Tasks:
  • puppet_lookup

Start using this module

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

Add this module to your Puppetfile:

mod 'tkishel-puppet_lookup', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install tkishel-puppet_lookup --version 0.1.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/puppet_lookup — version 0.1.0 Sep 27th 2018

puppet_lookup task

Table of Contents

  1. Description
  2. Requirements
  3. Usage - Basic
  4. Reference - Parameters
  5. Limitations - Parameters Not Implemented
  6. Getting Help - With Tasks

Description

This module provides the puppet_lookup task.

This task allows you to run puppet lookup via the Console or the command line.

Requirements

This module is compatible with Puppet Enterprise.

Usage

Use the puppet task run command, specifying the nodes and the key you want to retrieve:

puppet task run puppet_lookup --nodes master.example.com key=test

Note that the --nodes parameter is limited to masters and compile masters.

For example, on the command line, run:

[root@pe-agent ~]# puppet task run puppet_lookup --nodes $(puppet config print server) key=puppet_enterprise::profile::master::java_args
Starting job ...
Note: The task will run only on permitted nodes.
New job ID: 1
Nodes: 1

Started on master.example.com ...
Finished on node master.example.com
  status : success
  command : puppet lookup puppet_enterprise::profile::master::java_args --node master.example.com --environment production --merge first --render-as json
  results :
    Xms : 3072m
    Xmx : 3072m

Job completed. 1/1 nodes succeeded.
Duration: 2 sec

Reference

To view the available parameters for this task, on the command line, run:

puppet task show puppet_lookup

Limitations

The following puppet lookup command parameters are not implemented:

  1. --default
  2. --facts
  3. --knock-out-prefix
  4. --type

Getting Help

To show help for tasks, run puppet task run --help