puppet_lookup

pdk
tasks
Task that runs 'puppet lookup'

Tom Kishel

tkishel

4,402 downloads

4,402 latest version

5.0 quality score

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
  • CentOS
    ,
    RedHat
    ,
    Ubuntu
    ,
    SLES
Tasks:
  • puppet_lookup

Start using this module

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