Skip to content

Instantly share code, notes, and snippets.

@spiette
Created August 12, 2015 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spiette/1ae60dcb0165553106a5 to your computer and use it in GitHub Desktop.
Save spiette/1ae60dcb0165553106a5 to your computer and use it in GitHub Desktop.
https://groups.google.com/forum/#!topic/puppet-dev/AbXgZEFl3ME
you can dump the entire catalogue to stdout with the following:
it { p subject.resources }
If you are interested in just the one resource, it is probably easier to use:
it { p subject.resource('User', 'foo') }
which would return just that resource and its attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment