> I've been trying to use the catalogs stored in the PuppetDB to make the
> puppet-catalog-diff tool faster (instead of recompiling).
>
> However, the catalogs are munged before being stored in the PuppetDB, so
> this does not work.
>
> Is there a way to transform PuppetDB catalogs back to standard catalogs?
Nothing that we've ever written mate, maybe someone else might have
done something. The transformation starts here, so you can probably
reverse it: https://github.com/puppetlabs/puppetdb/blob/master/puppet/lib/puppet/indirector/catalog/puppetdb.rb#L12