r/Puppet • u/cvquesty • 7h ago
Before you cut over to OpenVox (or any big refactor), diff every node's catalog with puppet-catalog_diff
If you're planning a Puppet-to-OpenVox move, a major version upgrade, or a big Hiera/profile refactor, the Vox Pupuli puppet-catalog_diff module is worth an afternoon. It compares catalogs for your nodes between two servers or two environments and reports what would change, per node and per resource, before any agent runs.
What it does
Can fetch the old catalog from PuppetDB (last known facts and environment) and compile the new one on the target server
Uses PuppetDB to limit the run to active nodes, so you don't compile (and accidentally reactivate) decommissioned ones
Runs many nodes in parallel with
--threadsSaves a JSON report with
--output_reportso you can review or post-process it
Getting started (from the README)
puppet module install puppet-catalog_diff
puppet catalog diff \
old-server.example.com:8140/production new-server.example.com:8140/production \
--old_catalog_from_puppetdb \
--certless \
--show_resource_diff \
--content_diff \
--changed_depth 1000 \
--output_report "${HOME}/lastrun.json" \
--threads 10 \
--node_list=node1.example.com,node2.example.comStart with a short --node_list and a low thread count, then widen it once the output looks sane. You'll also need an auth.conf rule on the compiling server and PuppetDB access for node discovery; the README walks through both.
Version notes
Per the v5.0.0 release notes, the module now requires OpenVox 8.19+ on the machine running the diff (Puppet was dropped as a requirement). The README notes the servers you target can run older versions.
In October the requirements were updated to allow OpenVox 9.
36 contributors so far, maintained with the rest of the Vox Pupuli modules.
Anyone else using this as a gate before upgrades? Curious what flags you lean on and what it caught that you didn't expect.