Skip to content

Instantly share code, notes, and snippets.

@GeoffWilliams
Last active October 20, 2015 06:36
Show Gist options
  • Select an option

  • Save GeoffWilliams/dae1c1b55a67d743914b to your computer and use it in GitHub Desktop.

Select an option

Save GeoffWilliams/dae1c1b55a67d743914b to your computer and use it in GitHub Desktop.
node classifier on master script - how to talk to the NC api
curl -X POST \
https://$(facter fqdn):4433/classifier-api/v1/groups \
--cert /etc/puppetlabs/puppet/ssl/certs/$(facter fqdn).pem \
--key /etc/puppetlabs/puppet/ssl/private_keys/$(facter fqdn).pem \
--cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \
-H "Content-Type: application/json"
-d @data.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment