Skip to content

Instantly share code, notes, and snippets.

@bodgit
Created August 24, 2016 08:46
Show Gist options
  • Save bodgit/8d5ec029a5607e80158ecc26adfd4127 to your computer and use it in GitHub Desktop.
Save bodgit/8d5ec029a5607e80158ecc26adfd4127 to your computer and use it in GitHub Desktop.
How to get debug-level Puppet logs

Node profile:

HOSTS:
  centos-70-x64:
    roles:
      - master
    platform: el-7-x86_64
    box: puppetlabs/centos-7.0-64-nocm
    box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-nocm
    hypervisor: vagrant
CONFIG:
  type: foss
  trace_limit: 1000
require 'spec_helper_acceptance'

describe 'module' do

  it 'should work with no errors' do

    pp = <<-EOS
      include ::module
    EOS

    apply_manifest(pp, :catch_failures => true, :future_parser => true, :debug => true)
    apply_manifest(pp, :catch_changes  => true, :future_parser => true, :debug => true)
  end

  ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment