Skip to content

Instantly share code, notes, and snippets.

@h0tw1r3
Last active August 8, 2023 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h0tw1r3/0ed1c84bc05b9577688aa73b21a5cb70 to your computer and use it in GitHub Desktop.
Save h0tw1r3/0ed1c84bc05b9577688aa73b21a5cb70 to your computer and use it in GitHub Desktop.
Directly request a puppet catalog with curl
puppet plugin download --verbose
puppet facts upload --verbose
curl "https://$(puppet config print server):8140/puppet/v3/catalog/$(hostname -f)?environment=$(puppet config print environment)" \
--cert $(puppet config print hostcert) \
--cacert $(puppet config print localcacert) \
--key "$(puppet config print hostprivkey)" \
--silent | jq . > catalog.json
jq '.resources[] | select(.parameters.recurse == true )' catalog.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment