Kevin G.
2012-Oct-29 15:25 UTC
[Puppet Users] how to intercept a catalog and perform a diff
I''m re-reading the puppet docs http://docs.puppetlabs.com/learning/manifests.html and just noticed this footnote If you drastically refactor your manifest code and want to make sure it still generates the same configurations, you can just intercept the catalogs and use a special diff tool on them; but the footnote doesn''t say how to do that or point to any documentation. I''ve been looking for a way to do exactly that for some time now and haven''t succeeded in finding it, can anyone point me to documentation or give me a list of simple steps to "intercept a catalog" or what this "special diff tool" would be? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/gi_Wx8EpmqIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Brice Figureau
2012-Oct-29 15:28 UTC
Re: [Puppet Users] how to intercept a catalog and perform a diff
On Mon, 2012-10-29 at 08:25 -0700, Kevin G. wrote:> I''m re-reading the puppet docs > http://docs.puppetlabs.com/learning/manifests.html and just noticed > this footnote > > If you drastically refactor your manifest code and want to make sure > it still generates the same configurations, > you can just intercept the catalogs and use a special diff tool on > them; > > > but the footnote doesn''t say how to do that or point to any > documentation. I''ve been looking for a way to do exactly that for some > time now and haven''t succeeded in finding it, can anyone point me to > documentation or give me a list of simple steps to "intercept a > catalog" or what this "special diff tool" would be?You can check this awesome tool by RI: https://github.com/ripienaar/puppet-catalog-diff It''s now available as a Forge module, which should even more help using it. It produces a report that lists the differences between catalogs (old/new resources, and differences between changed resources). It is specifically useful when upgrading a puppet master to a new version to spot differences in behavior. -- Brice Figureau Follow the latest Puppet Community evolutions on www.planetpuppet.org! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2012-Oct-29 15:29 UTC
Re: [Puppet Users] how to intercept a catalog and perform a diff
----- Original Message -----> From: "Kevin G." <kgoess@bepress.com> > To: puppet-users@googlegroups.com > Sent: Monday, October 29, 2012 3:25:08 PM > Subject: [Puppet Users] how to intercept a catalog and perform a diff > > I''m re-reading the puppet docs > http://docs.puppetlabs.com/learning/manifests.html and just noticed > this footnote > > If you drastically refactor your manifest code and want to make sure > it still generates the same configurations, > you can just intercept the catalogs and use a special diff tool on > them; > > but the footnote doesn''t say how to do that or point to any > documentation. I''ve been looking for a way to do exactly that for > some time now and haven''t succeeded in finding it, can anyone point > me to documentation or give me a list of simple steps to "intercept > a catalog" or what this "special diff tool" would be?if you are on puppet 3 you can install the ripienaar-catalog_diff module from the forge and then use the ''puppet catalog diff'' command. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Henrik Lindberg
2012-Oct-29 16:10 UTC
Re: [Puppet Users] how to intercept a catalog and perform a diff
On 2012-29-10 16:25, Kevin G. wrote:> I''m re-reading the puppet docs > http://docs.puppetlabs.com/learning/manifests.html and just noticed this > footnote > > If you drastically refactor your manifest code and want to make sure > it still generates the same configurations, > you can just intercept the catalogs and use a special diff tool on them; > > but the footnote doesn''t say how to do that or point to any > documentation. I''ve been looking for a way to do exactly that for some > time now and haven''t succeeded in finding it, can anyone point me to > documentation or give me a list of simple steps to "intercept a catalog" > or what this "special diff tool" would be? >There is also a catalog diff available in Cloudsmih''t Stackhammer online tool. Checkout http://www.cloudsmith.com Regards - henrik -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.