Chef Server API integration

We’re looking to construct a VMware vCloud trigger to delete node+client
info from our Chef server when a vApp is deleted. I’m told the vCloud
"trigger" needs to be written in Javascript.

Has anyone done this? Something similar? Are you using a traditional
Chef client key pair with the private key hardcoded in the code for
authentication, or did you somehow make use of the oc_id OAuth2 provider
of Chef Server 12?

Any thoughts would be appreciated.

Jeff

On Jun 2, 2015, at 9:19 AM, Jeff Blaine jblaine@kickflop.net wrote:

We're looking to construct a VMware vCloud trigger to delete node+client
info from our Chef server when a vApp is deleted. I'm told the vCloud
"trigger" needs to be written in Javascript.

Has anyone done this? Something similar? Are you using a traditional
Chef client key pair with the private key hardcoded in the code for
authentication, or did you somehow make use of the oc_id OAuth2 provider
of Chef Server 12?

Any thoughts would be appreciated.

It is somewhat more basic than other client libs, but GitHub - sgentle/chef-node: Chef API client for nodejs is the Node binding. Should cover what you need.

--Noah