Last active
August 8, 2023 19:41
-
-
Save h0tw1r3/0ed1c84bc05b9577688aa73b21a5cb70 to your computer and use it in GitHub Desktop.
Directly request a puppet catalog with curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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