Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.