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 #9879

Puppet resource hash support

Added by Nan Liu over 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:10/04/2011
Priority:NormalDue date:
Assignee:Nan Liu% Done:


Target version:-
Affected Puppet version:2.7.4 Branch:
Keywords:puppet resource, hash

We've Moved!

Ticket tracking is now hosted in JIRA:


Improve puppet resource hash display.


type { 'title':
  attribute => hashkeyhashvalue,


f5_monitor { 'https_443':
  ensure                    => 'present',
  manual_resume_state       => 'STATE_DISABLED',
  template_destination      => '*:443',
  template_integer_property => { ITYPE_TIME_UNTIL_UP       => '0',
                                 ITYPE_UP_INTERVAL         => '0',
                                 ITYPE_PROBE_TIMEOUT       => '0',
                                 ITYPE_UNSET               => '0',
                                 ITYPE_PROBE_INTERVAL      => '0',
                                 ITYPE_INTERVAL            => '5',
                                 ITYPE_PROBE_NUM_SUCCESSES => '0',
                                 ITYPE_PROBE_NUM_PROBES    => '0',
                                 ITYPE_TIMEOUT             => '16' },
  template_state            => 'STATE_ENABLED',
  template_string_property  => { STYPE_CLIENT_CERTIFICATE => '',
                                 STYPE_CIPHER_LIST        => 'DEFAULT:+SHA:+3DES:+kEDH',
                                 STYPE_SSL_OPTIONS        => 'enabled',
                                 STYPE_RECEIVE            => '',
                                 STYPE_PASSWORD           => '',
                                 STYPE_SEND               => 'GET /',
                                 STYPE_CLIENT_KEY         => '',
                                 STYPE_USERNAME           => '' },
  template_transparent_mode => 'false',


#1 Updated by Nan Liu over 4 years ago

  • Description updated (diff)

Pull request available at:

#2 Updated by Nan Liu over 4 years ago

Apparently Jacob have a patch for #8414 that solves this from another angle: 23d5aeb

I prefer this output because I think it’s a bit more readable, but I don’t know if there are other implications and I’ll leave this up to engineering to decide whether to not to accept/merge.

#3 Updated by Jacob Helwig over 4 years ago

  • Status changed from In Topic Branch Pending Review to Code Insufficient


I do like the output you have for ‘puppet resource’ better. The branch you have right now no longer works since I unified the formatting of parameter values to a class method on Puppet::Parameter. I could see adding an options hash to this method to support both multi-line output, and the single line output necessary for logging/reporting. Something like Puppet::Parameter.format_value_for_display(v, :multi_line_hashes => true).

I would like to see this feature go on. Any chance you might have time to make the needed updates?

#4 Updated by Nan Liu about 4 years ago

Yeah, I’ll take another shot at this over this weekend since it’s very helpful for the current project I’m working on.

#5 Updated by Anonymous about 4 years ago

  • Assignee set to Nan Liu

Nan Liu wrote:

Yeah, I’ll take another shot at this over this weekend since it’s very helpful for the current project I’m working on.

Hey. I wanted to follow up on this with you and see where it was up to?

#6 Updated by Nan Liu almost 4 years ago

  • Status changed from Code Insufficient to Closed

I’m going to close this for now since I haven’t had time to visit this in a while.

#7 Updated by Anonymous almost 4 years ago

  • Target version deleted (2.7.x)

Also available in: Atom PDF