Created
April 21, 2016 02:59
-
-
Save josephoaks/b06eacf57911530f476e2bc922f3e241 to your computer and use it in GitHub Desktop.
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
############### | |
# 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