Git Product home page Git Product logo

exports's Introduction

Simple PuppetDB wrapper

This is a puppet face that will display all exports in puppetdb from the command line

Task Usage

Requirements

This module is compatible with Puppet Enterprise and Puppet Bolt.

Puppet Enterprise Tasks

With Puppet Enterprise 2017.3 or higher, you can run this task from the console or the command line.

Here's a command line example where we are checking for the exported Host resources from the Puppet master, master.corp.net:

[abir@workstation]$ puppet task run exports resources=Host --nodes master.corp.net

Starting job ...
New job ID: 247
Nodes: 1

Started on master.corp.net ...
Finished on node master.corp.net
  STDOUT:
    Name                                 Exports
    master.corp.net                      Host[master.corp.net]

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

Bolt

With Bolt, you can run this task on the command line like so:

bolt task run exports resources=Host --nodes master.corp.net

Parameters

  • resources: Filter the query to just a particular resource

Module Usage

  1. Install the module into your modulepath
puppet node exports

An example use would be monitoring students checking into the puppet master in the puppet advanced class

while :; do clear; puppet node exports --highlight; sleep 2; done

or if you do not have --color in watch:

watch 'puppet node exports'

Example Usage

To query for all exported resources ( be aware there is a 20,000 limit by default )

puppet node exports
Name                                 Exports
puppet3.puppetlabs.vm                File[/tmp/production_puppet3.puppetlabs.vm_2]
puppet3.puppetlabs.vm                File[/tmp/production_puppet3.puppetlabs.vm]
puppet3.puppetlabs.vm                User[foooo]

To query for just user resources

puppet node exports --resources user
Name                                 Exports
puppet3.puppetlabs.vm                User[foooo]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.