significance of output obtained using URL https://{puppetmaster}:8140/{environment}/resource_types/{regex}

asked 2014-01-06 08:30:22 -0500

dmanish gravatar image

Hi , I used this Url https://{puppetmaster}:8140/{environment}/resource_types/* to retrieve list of resources from the puppet master. The data obtained is pretty huge and I am not able to find what the data imply .What all data would be relevant to the end user .How can I parse the data to obtain only relevant info . The whole output contains approx 20000 liines .Sample of the output obtained is :-

---- &id002 !ruby/object:Puppet::Resource::Type type: !ruby/sym hostclass name: settings namespace: settings arguments: {} match: modulename: resourcetype_collection: &id001 !ruby/object:Puppet::Resource::TypeCollection environment: production hostclasses: "": !ruby ... (more)

edit retag flag offensive close merge delete

Comments

My guess is that you'd do better to access resource data via PuppetDB queries as opposed to talking to the Puppet API port directly. If you check http://docs ...(more)

nvpuppet gravatar imagenvpuppet ( 2014-01-08 19:36:53 -0500 )edit