The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #15512

puppet resource_type search '*' - differences between yaml and json rendering

Added by Andrew Elwell almost 2 years ago. Updated over 1 year ago.

Status:Needs More InformationStart date:07/13/2012
Priority:NormalDue date:
Assignee:Andrew Elwell% Done:

0%

Category:-
Target version:-
Affected Puppet version: Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

(blame bodepd…)

Trying out his example of puppet resource_type search ‘*’ on a puppetmaster

—render-as json returns much less than —render-as yaml

[root@itgt-puppet ~]# puppet resource_type search '*' --render-as yaml | grep collectd
                              value: collectd_package
                                  value: collectd.
                              value: collectd_package
                              value: collectd-core
                                          value: puppet:///files/collectd/collectd.conf
                                                value: collectd
                                                value: collectd_package
                                    value: /etc/collectd/collectd.conf
                        value: collectd_package
                        value: /etc/collectd.d
                              value: puppet:///files/collectd/cern-itgt.conf
                                    value: collectd
                                    value: collectd_package
                        value: /etc/collectd.d/cern-itgt.conf
                        value: collectd
            &id526 /etc/puppet/manifests/classes/collectd.pp: !ruby/sym done
          file: /etc/puppet/manifests/classes/collectd.pp
[root@itgt-puppet ~]# puppet resource_type search '*' --render-as json | grep collectd
[root@itgt-puppet ~]# 

Related issues

Related to Puppet - Feature #21427: Deprecate YAML for network data transmission Closed

History

#1 Updated by Ken Barber almost 2 years ago

  • Project changed from Facter to Puppet

#2 Updated by eric sorenson over 1 year ago

  • Status changed from Unreviewed to Needs More Information
  • Assignee set to Andrew Elwell

I did some testing and got equivalent results from yaml and json. Can you provide more reproducibility information?

Puppet version

Ruby version / packager

As much manifest info as you can share.

Thanks!

Also available in: Atom PDF