{"id":13709612,"url":"https://github.com/voxpupuli/puppet-catalog_diff","last_synced_at":"2025-05-06T16:32:05.286Z","repository":{"id":37078564,"uuid":"258246631","full_name":"voxpupuli/puppet-catalog_diff","owner":"voxpupuli","description":"📄↔📄 A tool to diff Puppet catalogs","archived":false,"fork":true,"pushed_at":"2024-10-03T13:42:05.000Z","size":559,"stargazers_count":14,"open_issues_count":4,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T14:22:33.725Z","etag":null,"topics":["centos-puppet-module","cfgmgmt","code-quality","compare","debian-puppet-module","devops","diff","hacktoberfest","impact-analysis","linux-puppet-module","oraclelinux-puppet-module","puppet","redhat-puppet-module","ruby","scientific-puppet-module","ubuntu-puppet-module","windows-puppet-module"],"latest_commit_sha":null,"homepage":"https://forge.puppet.com/modules/puppet/catalog_diff/readme","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"acidprime/puppet-catalog-diff","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voxpupuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-23T15:21:33.000Z","updated_at":"2024-10-03T13:42:08.000Z","dependencies_parsed_at":"2023-07-12T14:28:10.567Z","dependency_job_id":"a068c8ef-1cb9-4ba4-bb16-7d86bf5edc14","html_url":"https://github.com/voxpupuli/puppet-catalog_diff","commit_stats":{"total_commits":379,"total_committers":32,"mean_commits":11.84375,"dds":0.5461741424802111,"last_synced_commit":"952b5d468676936036f9823499f5543413450b56"},"previous_names":["camptocamp/puppet-catalog-diff"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-catalog_diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-catalog_diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-catalog_diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-catalog_diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxpupuli","download_url":"https://codeload.github.com/voxpupuli/puppet-catalog_diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224513442,"owners_count":17323808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centos-puppet-module","cfgmgmt","code-quality","compare","debian-puppet-module","devops","diff","hacktoberfest","impact-analysis","linux-puppet-module","oraclelinux-puppet-module","puppet","redhat-puppet-module","ruby","scientific-puppet-module","ubuntu-puppet-module","windows-puppet-module"],"created_at":"2024-08-02T23:00:42.447Z","updated_at":"2024-11-13T19:31:55.247Z","avatar_url":"https://github.com/voxpupuli.png","language":"Ruby","readme":"# Puppet Catalog Diff\n\n[![Build Status](https://github.com/voxpupuli/puppet-catalog_diff/workflows/CI/badge.svg)](https://github.com/voxpupuli/puppet-catalog_diff/actions?query=workflow%3ACI)\n[![Release](https://github.com/voxpupuli/puppet-catalog_diff/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-catalog_diff/actions/workflows/release.yml)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/catalog_diff.svg)](https://forge.puppetlabs.com/puppet/catalog_diff)\n[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/catalog_diff.svg)](https://forge.puppetlabs.com/puppet/catalog_diff)\n[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/catalog_diff.svg)](https://forge.puppetlabs.com/puppet/catalog_diff)\n[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/catalog_diff.svg)](https://forge.puppetlabs.com/puppet/catalog_diff)\n[![puppetmodule.info docs](http://www.puppetmodule.info/images/badge.png)](http://www.puppetmodule.info/m/puppet-catalog-diff)\n[![Apache-2 License](https://img.shields.io/github/license/voxpupuli/puppet-catalog_diff.svg)](LICENSE)\n[![By Camptocamp](https://img.shields.io/badge/by-camptocamp-fb7047.svg)](http://www.camptocamp.com)\n\n\n![Catalog Diff](https://raw.githubusercontent.com/voxpupuli/puppet-catalog_diff/master/catalog-diff.png)\n\n\n#### Table of Contents\n\n1. [Overview](#overview)\n1. [Module Description](#module-description)\n1. [Setup](#setup)\n    1. [Set up node discovery](#set-up-node-discovery)\n    1. [Set up auth.conf](#set-up-auth-conf)\n1. [Usage](#usage)\n    1. [Multi threaded compile requests](#multi-threaded-compile-requests)\n    1. [Fact search](#fact-search)\n    1. [Changed depth](#changed-depth)\n    1. [Output report](#output-report)\n1. [Limitations](#limitations)\n1. [Previous Authors](#previous-authors)\n1. [Contributors](#contributors)\n1. [See Also](#see-also)\n    1. [Upload facts to PuppetDB](#upload-facts-to-puppetdb)\n    1. [Modern fact submission](#modern-fact-submission)\n\n\n## Overview\n\nA tool to compare two Puppet catalogs.\n\n\n## Module Description\n\nWhile upgrading versions of Puppet or refactoring Puppet code you want to\nensure that no unexpected changes will be made prior to committing the changes.\n\nThis tool will allow you to diff catalogs created by different versions of\nPuppet or different environments.\nThis will let you gauge the impact of a change before actually touching\nany of your nodes.\n\nThis tool is delivered as a collection of Puppet Faces.\nIt thus requires a Puppet 6.11 (or newer) installation to properly run.\n\nOnly the system that runs catalog-diff needs to be using Puppet 6.11 or newer.\nThe puppetservers you are targeting to do the catalog compilation can be running\nan early version of puppet; however puppetdb must be at least version 2.3. You\ncan use catalog-diff directly on a Puppetserver but also on another server.\n\nThe diff tool recognizes catalogs in yaml, marshall, json, or pson formats.\nCurrently automatic generation of the catalogs is done in the pson format.\n\nThe tool can automatically compile the catalogs for both your new and older\nservers/environments.\nIt can ask the master to use PuppetDB to compile the catalog for the last\nknown environment with the last known facts. It can then validate against PuppetDB\nthat the node is still active. This filtered list\nshould contain only machines that have not been decommissioned in PuppetDB (important\nas compiling their catalogs would also reactive them and their exports otherwise).\n\nWhen you are comparing between different versions of Puppet using two Master servers\nyou are going to need to copy facts from the old Master to the new one in order to be\nable to compile catalogs on the new Master. This is useful when upgrading Puppet version.\n\nTo upload facts to PuppetDB on a Master see the [Upload facts](#upload-facts-to-puppetdb) script.\n\n## Setup\n\n\n### Set up node discovery\n\nNode discovery requires an access to the PuppetDB. You'll need either:\n\n* have an unencrypted access to PuppetDB (port 8080, local or proxified)\n* generate a set key and certificate signed by the Puppet CA to access the\n  PuppetDB\n\nPuppetDB has an (optional) [allowlist](https://www.puppet.com/docs/puppetdb/7/configure.html#certificate-allowlist)\nfor certificates that are allowed to connect to the database. It's located at\n`/etc/puppetlabs/puppetdb/certificate-allowlist`. in Puppet Enterprise you can\nconfigure it like this to allow a specific certificate:\n\n```yaml\npuppet_enterprise::profile::puppetdb::allowlisted_certnames:\n  - catalog-diff\n```\n\n### Set up auth.conf\n\nOnce you have set up the discovery, you need to allow access to the \"diff\" node to\ncompile the catalogs for all nodes on both your old and new masters.\n\nOn Puppet 5+, you need to edit the Puppetserver's\n`/etc/puppetlabs/puppetserver/conf.d/auth.conf` file.\n\nIn your confdir modify auth.conf to allow access to `/catalog`.\nIf there is an existing reference i.e. the $1 back reference for machines to\ncompile their own catalog then simply add another line with the certificate\nname of the diff machine. As mentioned this can be the new master as required.\n\nE.g. if you're using Puppet 5, you should have something like:\n\n```ruby\n{\n    # Allow nodes to retrieve their own catalog\n    match-request: {\n        path: \"^/puppet/v3/catalog/([^/]+)$\"\n        type: regex\n        method: [get, post]\n    }\n    allow: [\"$1\",\"catalog-diff\"]\n    sort-order: 500\n    name: \"puppetlabs catalog\"\n},\n```\n\n\nIf you are on Puppet 6, you can activate the certless API instead with:\n\n```ruby\n{\n    match-request: {\n        path: \"^/puppet/v4/catalog\"\n        type: regex\n        method: [post]\n    }\n    allow: [\"catalog-diff\"]\n    sort-order: 500\n    name: \"puppetlabs certless catalog\"\n},\n```\n\nYou can update the `auth.conf` with the following Puppet code (uses the\n[puppetlabs/puppet_authorization](https://forge.puppet.com/modules/puppetlabs/puppet_authorization) module):\n\n```puppet\npuppet_authorization::rule { 'catalog-diff certless catalog':\n  match_request_path   =\u003e '^/puppet/v4/catalog',\n  match_request_type   =\u003e 'regex',\n  match_request_method =\u003e 'post',\n  allow                =\u003e 'catalog-diff',\n  sort_order           =\u003e 500,\n  path                 =\u003e '/etc/puppetlabs/puppetserver/conf.d/auth.conf',\n}\n```\n\nThe certless API has one big, not so obvious, advantage. It can read trusted\nfacts from PuppetDB and use them during catalog compilation. Using trusted facts\nin Hiera/Puppet code required using the certless API. From the\n[API docs](https://puppet.com/docs/puppet/7/server/puppet-api/v4/catalog.html#trusted-facts):\n\n\u003e trusted_facts (API field): A hash with a required values key containing a hash of the trusted facts for a node. In a normal agent's catalog request, these would be extracted from the cert, but this endpoint does not require a cert for the node whose catalog is being compiled. If not provided, Puppet will attempt to fetch the trusted facts for the node from PuppetDB or from the provided facts hash.\n\n## Usage\n\n\nExample: diff catalogs for `node1.example.com` \u0026 `node2.example.com` between\npuppetserver `puppet5.example.com`, `puppet6.example.com`. The old catalog will\nbe fetched from PuppetDB, the new one will be compiled:\n\n```shell\n$ puppet module install puppet-catalog_diff\n$ puppet catalog diff \\\n     puppet5.example.com:8140/production puppet6.example.com:8140/production \\\n     --filter_old_env \\\n     --old_catalog_from_puppetdb \\\n     --certless \\\n     --show_resource_diff \\\n     --content_diff \\\n     --ignore_parameters alias \\  # Puppet6 removes lots of alias parameters\n     \\ #--yamldir $YAMLDIR \\\n     \\ #--ssldir $SSLDIR \\\n     --changed_depth 1000 \\\n     --configtimeout 1000 \\\n     --output_report \"${HOME}/lastrun-$$.json\" \\\n     --debug \\\n     \\ #--fact_search kernel='Darwin' \\\n     --threads 50 \\\n     \\ #--node_list=node1.example.com,node2.example.com\n```\n\nExample: Compare to local catalogs for `node1.example.com` (we recommend absolute paths):\n\n```shell\n$ puppet catalog diff /foo/old/node1.example.com.json /foo/new/node1.example.com.json\n```\n\nYou can generate them on an agent in a serverless setup:\n\n```shell\npuppet catalog compile --render-as json\n```\n\nAs an alternative an agent can also download its catalog and store it locally:\n\n```shell\npuppet catalog download\n```\n\n### Multi threaded compile requests\n\nYou can change the number of concurrent connections to the masters by passing an interger\nto the `--threads` option. This will balence the catalogs evenly on the old and new\nmasters. This option defaults to 10 and in testing 50 threads seemed correct for\n4 masters with two load balancers.\n\nNote: When using catalog diff to compare directories, one thread per catalog\ncomparison will be created.  However, since Ruby cannot take advantage of\nmultiple CPUs this may be of limited use comparing local catalogs.  If the\n'parallel' gem is installed, then one process will be forked off per CPU on the\nsystem, allowing use of all CPUs.\n\n### Fact search\n\nYou can pass `--fact_search` to filter the list of nodes based on a single fact value.\nThis currently defaults to `kernel=Linux` if you do not pass it.\nThis query will be passed as a filter to the PuppetDB to retrieve the list of\nnodes to compare.\n\n### Node list\n\nPassing `--node_list` will bypass the dynamic generation of node lists from PuppetDB\nincluding the `--fact_search` filter. The list of nodes are not validated against\nPuppetDB, and it is up to the user to ensure that the nodes exist and are active.\n\n### Changed depth\n\nOnce each catalog is compiled , it is saved to the /tmp directory on the system and the\nface will then automatically calculate the differences between the catalogs. Once this\nis complete a summary of number of nodes with changes as well as nodes whose catalog\nwould not compile are listed. You can modify the number of nodes shown here using\n`--changed_depth` option.\n\n### Output Report\n\nYou can save the last report as json to a specific location using \"`--output_report`\"\nThis report will contain the structured data in the format of running this command\nwith `--render-as json`. An example Rakefile is provided with a `docs` task for\nconverting this report to (GitHub flavored) markdown. The script above also will\nsave the output with escaped color. If you want to view that text report run\n`less -r lastrun-$$.log`\n\n### Non-default PuppetDB/Configuring PuppetDB\n\nUsually, Puppet uses its default PuppetDB. This is configured in the\n`puppetdb.conf`. The file is located at\n`$(puppet config print confdir)/puppetdb.conf` (usually\n`/etc/puppetlabs/puppet/puppetdb.conf`). It's present by default on all\nPuppetservers that talk to a PuppetDB. puppet-catalog-diff will use the first\nentry in that file.\n\nIt's recommended to run puppet-catalog-diff as a normal user, not as root user.\nIn that case the `confdir` is different and you need to create the\n`puppetdb.conf` explicitly. It's a\n[simple ini format](https://puppet.com/docs/puppetdb/latest/puppetdb_connection.html):\n\n```ini\n[main]\nserver_urls = https://fqdn:8081\n```\n\nYou can even run puppet-catalog-diff as non-root on a system that's not a\nPuppetserver. In that case you need to install\n[puppetdb-termini](https://puppet.com/docs/puppetdb/latest/connect_puppet_server.html#on-platforms-with-packages)\nin addition to the Puppet Agent.\n\nThe spec allows you to list multiple PuppetDBs in the `puppetdb.conf`, however\npuppet-catalog-diff always uses the first entry. By default, this server will\nbe used to discover nodes in PuppetDB, to get old catalogs from PuppetDB and to\nget new catalogs.\n\nIf you like, you can provide two explicit PuppetDB URIs for different purposes.\nFor node discovery and retrieving old catalogs, you can use\n`--old_puppetdb https://fqdn:8081`. To get new catalogs from a specific\nPuppetdb, use `--new_puppetdb https://fqdn:8081`.\n\n`puppet catalog diff` works with the TLS certificates that the agent also uses.\nYou can see the related files by checking `puppet config print | grep ssl`. If\nthe old PuppetDB uses certificates from a different CA, you can provide those\nvia CLI options Those are:\n\n* `--old_puppetdb_tls_cert=`\n* `--old_puppetdb_tls_key=`\n* `--old_puppetdb_tls_ca=`\n\n### Non-default Puppetserver\n\n`puppet catalog diff` can request an old catalog from a Puppetserver. The\nPuppetserver will compile a new catalog. By default, catalog-diff will use the\nAgent default certificates to connect to the old Puppserver (see the section\nabove for details). You can provide custom Client TLS certificate/private key\nand a CA file:\n\n* `--old_puppetserver_tls_cert=`\n* `--old_puppetserver_tls_key=`\n* `--old_puppetserver_tls_ca=`\n\n## Limitations\n\nThis code only validates the catalogs, it cannot tell you if the behavior of\nthe providers that interpret the catalog has changed so testing is still\nrecommended, this is just one tool to take away some of the uncertainty.\n\nYou can get some inline help with:\n\n    puppet man catalog\n\nThe reports generated by this tool can be rendered as json as well as\nviewed in markdown using the Rakefile in this directory.\nA web viewer is also available at [https://github.com/voxpupuli/puppet-catalog-diff-viewer](https://github.com/voxpupuli/puppet-catalog-diff-viewer)\n\n\n## Previous Authors\n\nR.I.Pienaar \u003crip@devco.net\u003e / www.devco.net / @ripienaar\nZack Smith \u003czack@puppetlabs.com\u003e / @acidprime\nRaphaël Pinson \u003craphael.pinson@camptocamp.com\u003e / @raphink\n\n\n## Contributors\n\nThe list of contributors can be found at: [https://github.com/voxpupuli/puppet-catalog_diff/graphs/contributors](https://github.com/voxpupuli/puppet-catalog_diff/graphs/contributors).\n\n\n## See also\n\n### Upload facts to PuppetDB\n\nStandalone Ruby script `upload_facts.rb` that is used to upload yaml files with facts to\nPuppetDB. This is useful when you are upgradering Puppet version and uses two different\nPuppet Masters for this. Then you can use this script to upload facts from the old Master\nto the new one. The script can also be used to just refresh the facts in PuppetDB from\nthe old Master. These facts are required to be able to compile the catalogs on the new\nMaster.\n\nThe script uses yaml-files in the same format as stored on the Puppet Master when real\nagents report their facts at the beginning of a Puppet Agent execution.\n\nThe script is developed to be executed on the Puppet Master, so the yaml-facts files\nshould be copied to the new Master using scp or similar, preferably to the\n`$(puppet config print vardir)/yaml/facts` directory.\n\nThen all files in the directory can be uploaded to PuppetDB by using this command:\n\n```shell\n$ ./upload_facts.rb $(puppet config print vardir)/yaml/facts/*.yaml\n```\n\nThe script is available at [https://github.com/JohnEricson/upload_facts](https://github.com/JohnEricson/upload_facts).\n\nIt's been verified to work with uploading facts from Puppet Masters running Puppet\nversion 3 to Masters running version 5. It uses the [`/puppet/v3/facts/` API](https://puppet.com/docs/puppet/6.17/http_api/http_facts.html)\nwhich is available in version 3 and \u003e= 5 of Puppet. This API was removed in Puppet 4 but\nadded again in 5.\n\n### Modern fact submission\n\nNowadays it's possible to use `puppet facts upload --server $new_server` to\nsubmit facts to a new server. This however requires that the new puppetserver\nand the old one share one certificate authority. You can easily run this once\nvia bolt to get all facts to a new puppetserver.\n\n### complex fact submission\n\nTo every problem an overengineered solution exists! Let's assume this:\nYou have an existing Puppet environment. You setup a new Puppetserver,\nwith a newer Puppet version and a new CA. You have a third box with\ncatalog_diff, that has certificates to access the old and new Puppetserver. Now\nfor catalog_diff to work, we need to get the facts from the old environment to\nthe new one. There are three little scripts that you can use to:\n\n* download facts from old PuppetDB\n* Convert the format\n* Submit them to the new Puppetserver\n\nIt's best to run them on the catalog_diff box, since it already has certificates\nthat allow it to access all required APIs:\n\n\n```bash\n#!/bin/bash\n\n\n#differ_certs/\n#├── catalog-diff_dev\n#│   ├── ca\n#│   │   └── ca.pem\n#│   ├── cert\n#│   │   └── catalog-diff.pem\n#│   └── private\n#│       └── catalog-diff.pem\n#├── catalog-diff_prod\n#│   ├── ca\n#│   │   └── ca.pem\n#│   ├── cert\n#│   │   └── catalog-diff.pem\n#│   └── private\n#│       └── catalog-diff.pem\n\n\ncerts_dir=\"${HOME}/differ_certs\"\ncerts_dev=\"${certs_dir}/catalog-diff_dev\"\ncerts_prod=\"${certs_dir}/catalog-diff_prod\"\ncert='catalog-diff.pem'\npuppetdb_dev=puppet-dev.local\npuppetdb_prod=puppet-prod.local\nclientcert_dev=\"${certs_dev}/cert/${cert}\"\nclientcert_prod=\"${certs_prod}/cert/${cert}\"\nclientkey_dev=\"${certs_dev}/private/${cert}\"\nclientkey_prod=\"${certs_prod}/private/${cert}\"\ncacert_dev=\"${certs_dev}/ca/ca.pem\"\ncacert_prod=\"${certs_prod}/ca/ca.pem\"\n\nfunction prod_facts() {\n  curl --request GET \\\n    --url \"https://${puppetdb_prod}:8081/pdb/query/v4/factsets\" \\\n    --cert \"${clientcert_prod}\" \\\n    --cacert \"${cacert_prod}\" \\\n    --key \"${clientkey_prod}\" \\\n    --silent \\\n    | jq -cr '.[] | .certname, .' | awk 'NR%2{f=\"factsets/\"$0\".json\";next} {print \u003ef;close(f)}'\n}\n\nfunction dev_facts() {\n  curl --request GET \\\n    --url \"https://${puppetdb_dev}:8081/pdb/query/v4/factsets\" \\\n    --cert \"${clientcert_dev}\" \\\n    --cacert \"${cacert_dev}\" \\\n    --key \"${clientkey_dev}\" \\\n    --silent \\\n    | jq -cr '.[] | .certname, .' | awk 'NR%2{f=\"factsets/\"$0\".json\";next} {print \u003ef;close(f)}'\n}\n\nfunction facts() {\n  dev_facts\n  prod_facts\n}\nfacts\n```\n\n```ruby\n#!/opt/puppetlabs/puppet/bin/ruby\n\nrequire 'json'\nrequire 'date'\n\nDir[Dir.home + \"/factsets/*.json\"].each do |file|\n  filename = File.basename(file)\n  puts \"processing #{filename}\"\n  facts = JSON.parse(File.read(file))\n  real_facts = { }\n  real_facts['values'] = facts['facts']['data'].map{|facthash| {facthash['name'] =\u003e facthash['value']}}.reduce({}, :merge)\n  real_facts['name'] = facts['certname']\n  real_facts['timestamp'] = facts['timestamp']\n  # expiration is usually timestamp + runintervall. We use 30min here\n  real_facts['expiration'] = DateTime.parse(facts['timestamp']) + Rational(30 * 60, 86400)\n  File.open(Dir.home + \"/facts/#{filename}\",\"w\") do |f| f.write(\"#{JSON.pretty_generate(real_facts)}\\n\") end\nend\n```\n\n```bash\n#!/bin/bash\n\nhostcert=\"$(puppet config print hostcert)\"\nhostprivkey=\"$(puppet config print hostprivkey)\"\nlocalcacert=\"$(puppet config print localcacert)\"\nserver=\"$(puppet config print server)\"\nfor file in facts/*json; do\n  filename=\"$(basename $file)\"\n  certname=\"$(basename $filename '.json')\"\n  environment=\"$(jq --raw-output .environment factsets/${filename})\"\n  curl --include \\\n    --request PUT \\\n    --cert \"${hostcert}\" \\\n    --key \"${hostprivkey}\" \\\n    --cacert \"${localcacert}\" \\\n    --data @\"${file}\" \\\n    --url \"https://${server}:8140/puppet/v3/facts/${certname}?environment=${environment}\" \\\n    --header 'Content-Type: application/json'\ndone\n```\n\n### Further documentation\n\n* Raphaël Pinson wrote a [blog series on dev.to](https://dev.to/camptocamp-ops/diffing-puppet-environments-1fno) about using puppet-catalog-diff and GitLab integration\n* Raphaël Pinson also made two talks about it:\n  * https://youtu.be/6LOaHsQDsiI - Automated Puppet Impact Analysis with Puppet Catalog Diff and GitLab CI\n  * https://youtu.be/o8HP_wcxse4 - Puppet Camp Netherlands: Impact Analysis with Puppet Catalog Diff\n","funding_links":[],"categories":["Tools","Programming"],"sub_categories":["Modules Management","Puppet"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-catalog_diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxpupuli%2Fpuppet-catalog_diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-catalog_diff/lists"}