Skip to content

Instantly share code, notes, and snippets.

@jpadams
Created October 5, 2014 05:06
Show Gist options
  • Save jpadams/49f498b5f216e7d9273a to your computer and use it in GitHub Desktop.
Save jpadams/49f498b5f216e7d9273a to your computer and use it in GitHub Desktop.
curl --cacert `puppet agent --configprint localcacert` --cert `puppet agent --configprint hostcert` --key `puppet agent --configprint hostprivkey` --insecure https://localhost:4433/classifier-api/v1/environments
curl --cacert `puppet agent --configprint localcacert` --cert `puppet agent --configprint hostcert` --key `puppet agent --configprint hostprivkey` --insecure https://localhost:4433/classifier-api/v1/nodes
curl --cacert `puppet agent --configprint localcacert` --cert `puppet agent --configprint hostcert` --key `puppet agent --configprint hostprivkey` --insecure https://localhost:4433/classifier-api/v1/groups
curl --cacert `puppet agent --configprint localcacert` --cert `puppet agent --configprint hostcert` --key `puppet agent --configprint hostprivkey` --insecure https://localhost:4433/classifier-api/v1/classes
curl --cacert `puppet agent --configprint localcacert` --cert `puppet agent --configprint hostcert` --key `puppet agent --configprint hostprivkey` --insecure https://localhost:4433/classifier-api/v1/groups| python -m json.tool |grep -C 2 "PE MCollective" | grep "id" | cut -d: -f2 | sed 's/[\",]//g'
curl -k --cacert `puppet agent --configprint localcacert` --cert `puppet agent --configprint hostcert` --key `puppet agent --configprint hostprivkey` --insecure https://localhost:4433/classifier-api/v1/groups | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment