The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Feature #20755

Add Pretty Print to command line hiera output

Added by Nathan Huisman almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Nathan Huisman% Done:


Category:hieraEstimated time:0.01 hour
Target version:1.3.0
Keywords: Affected Hiera Version:1.2.1

We've Moved!

Ticket tracking is now hosted in JIRA:


Modify the hiera binary to use pp for output

diff —git a/bin/hiera b/bin/hiera index ddd4daa..ce2875e 100755 —– a/bin/hiera +++ b/bin/hiera @@ -24,6 +24,7 @@ end require ‘hiera’ require ‘hiera/util’ require ‘optparse’ +require ‘pp’

options = { :default => nil, @@ -222,5 +223,5 @@ ans = hiera.lookup(options[:key], options[:default], options if ans.is_a?(String) puts ans else – p ans + pp ans end


#1 Updated by Nathan Huisman almost 3 years ago

Added pull request

#2 Updated by Anonymous over 2 years ago

  • Status changed from Unreviewed to Merged - Pending Release
  • Target version changed from 1.2.x to 1.3.0

Merged into master in

#3 Updated by Melissa Stone over 2 years ago

  • Status changed from Merged - Pending Release to Closed

Released in Hiera 1.3.0-rc2

Also available in: Atom PDF