Chris May
2010-Dec-21 15:54 UTC
[Puppet Users] puppetmasterd --compile: repeatable YAML output?
Hi all, I''ve recently started using "puppetmasterd --compile" to validate changes to my manifests before I push them out onto the puppetmaster, which is a great help in spotting syntax errors, missing resources and the like. However, something I''d really like to be able to do, is to make a change which _should_ have no effect on the manifest for a particular node, and verify that it _does_ have no effect. This is hard to do at present, because the ordering of elements inside the generated YAML is unpredictable - it appears to change even between subsequent runs of an identical manifest, and certainly between runs where the manifest has changed due to a side-effect-free refactoring. This means that text-based diffing of the generated YAML doesn''t work. Is there a way to force a consistent order on the generated YAML? Failing that, does anyone have a recommendation for a "YAML diff" tool that can show substantive differences between the compiled manifests ? Cheers, Chris -- 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.
deet
2010-Dec-21 16:01 UTC
[Puppet Users] Re: puppetmasterd --compile: repeatable YAML output?
Failing> that, does anyone have a recommendation for a "YAML diff" tool that can show > substantive differences between the compiled manifests ?Chris. We are doing a big refactor and migration from .25 to 2.6. I just started looking into using https://github.com/ripienaar/puppet-catalog-diff to do some catalog comparisons before I roll out the upgraded puppet/ manifests. This sounds pretty close to what your looking for. HTH. Derek.> > Cheers, > > Chris-- 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.
Chris May
2010-Dec-21 16:16 UTC
[Puppet Users] Re: puppetmasterd --compile: repeatable YAML output?
Perfect - that''s exactly what I needed. Thanks! Chris -- 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.