On Thu, Jul 2, 2015 at 5:19 AM, Ken Barber <k...@puppetlabs.com> wrote:

> > 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
>
> In an ideal world both formats should be same/similar to avoid this
> altogether.
>

The format Puppet uses for transferring catalogs has a lot of issues, and
PuppetDB is optimizing out a lot of the data in it, so neither format is
quite right.  We've got long-term goals of replacing both with a canonical
format, but I think we're a ways away from that.


-- 
http://puppetlabs.com/ | http://about.me/lak | @puppetmasterd

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CAGMZ2bzR8UR7%3DZE8wAr1aaMwPs7OVj1%2B7hTT8yQaFc3jY2rDCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to