Using the Chef Server API
The Chef Server stores all of the important information regarding our infrastructure, and occasionally we need to use that information from a computer other than our workstations or individual nodes. In these situations, we're able to leverage the Chef Server REST API for making authenticated requests to read and modify the data within the Chef Server. This can be useful for when other web applications are analyzing our cookbooks, or for something like a Lambda function that we have interacting with our data periodically.
In this learning activity, we'll utilize the Chef gem to interact with the Chef Server REST API, from within a small Ruby web application. By the time we're finished this activity, you should feel more comfortable leveraging the Chef Server REST API to build other tools that interact with Chef Server data.