0.05
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
A interactive command line tool for evaluating the puppet language
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.12

Runtime

~> 0.3
>= 3.8
 Project Readme

This code has moved to gitlab. Please see https://gitlab.com/puppet-debugger/puppet-debugger

demo

demo

Table of Contents generated with DocToc

  • puppet-debugger
    • Compatibility
    • Production usage
    • Installation
    • Load path
    • Interactive demo
    • Web demo
    • Usage
    • Using Variables
      • Listing variables
    • Listing functions
    • Using functions
    • Duplicate resource error
    • Setting the puppet log level
    • Remote nodes
      • Setup

Gem Version

puppet-debugger

A interactive command line tool for evaluating and debugging the puppet language.

Documentation

Please visit https://docs.puppet-debugger.com for more info.

Compatibility

Requires Puppet 5.5+, ruby 2.4+

Production usage

The puppet debugger is a developer tool that should only be used when writing puppet code. Although it might seem useful to install on your production puppet master. Please do not install because of the puppet-debugger gem dependencies that might conflict with your existing environment.

Installation

gem install puppet-debugger

Web demo

There is a web version of the puppet-debugger online but is somewhat limited at this time. In the future we will be adding lots of awesome features to the web debugger.

Usage

The puppet debugger is a puppet application so once you install the gem, just fire it up using puppet debugger.
If you have used puppet apply to evaulate puppet code, this replaces all of that with a simple debugger REPL console. The debugger will only parse and evaluate your code. It will not build a catalog and try to enforce the catalog. This has a few side affects. This means you can type any puppet code in the debugger and see what it would actual do when compiling a resource.

  1. Type and provider code will not get run.
  2. Nothing is created or destroyed on your system.

puppet debugger

Example Usage

Ruby Version: 2.6.5
Puppet Version: 6.17.0
Puppet Debugger Version: 1.0.0
Created by: NWOps <corey@nwops.io>
Type "commands" for a list of debugger commands
or "help" to show the help screen.


1:>> $os
 => {
  "architecture" => "x86_64",
        "family" => "RedHat",
      "hardware" => "x86_64",
          "name" => "Fedora",
       "release" => {
     "full" => "23",
    "major" => "23"
  },
       "selinux" => {
       "config_mode" => "permissive",
     "config_policy" => "targeted",
      "current_mode" => "permissive",
           "enabled" => true,
          "enforced" => false,
    "policy_version" => "29"
  }
}
2:>> 

Copyright

Copyright (c) 2018 NWOPS, LLC. See LICENSE.txt for further details.