(PUP-3119) Added yaml output to puppet resource

This enables you to list resources in YAML format for copy/paste into Hiera files.

The output should be suitable for use with the create_resources function
I believe that you would want to work off of a copy of this collection, rather than mutating the existing one, which seems dangerous to me.