Skip to content

Instantly share code, notes, and snippets.

@josephoaks
Created April 21, 2016 02:59
Show Gist options
  • Save josephoaks/b06eacf57911530f476e2bc922f3e241 to your computer and use it in GitHub Desktop.
Save josephoaks/b06eacf57911530f476e2bc922f3e241 to your computer and use it in GitHub Desktop.
###############
# New version #
###############
curl --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \
--cert /etc/puppetlabs/puppet/ssl/certs/pirate.puppetlabs.vm.pem \
--key /etc/puppetlabs/puppet/ssl/private_keys/pirate.puppetlabs.vm.pem \
https://master.puppetlabs.vm:8140/puppet/v3/catalog/pirate.puppetlabs.vm?environment=production \
| jq .
#################################################################
# jq is a lightweight and flexible command-line JSON processor. #
#################################################################
yum -y install jq
###############
# Old version #
###############
curl --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem
--cert /etc/puppetlabs/puppet/ssl/certs/pirate.puppetlabs.vm.pem
--key /etc/puppetlabs/puppet/ssl/private_keys/pirate.puppetlabs.vm.pem
https://master.puppetlabs.vm:8140/production/catalog/pirate.puppetlabs.vm | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment