Creating an Ohai Plugin
DevOps Training Architect II in Content
By default, Ohai provides a lot of information about the systems that are managed by Chef. But that doesn't mean that it provides everything we might like to know. Occasionally, we would like to be able to calculate additional information at chef-client runtime. We could use that information in recipes, or simply store it for querying later. In this learning activity, you'll be asked to create an Ohai plugin. It will add information to the node object about the names of groups that exist on the system. You can query the Chef Server for this information later on. By the time you're finished with this activity, you should feel more comfortable using the Ohai DSL, and adding additional information to the node object using a custom Ohai plugin.