Building a Custom Knife Plugin

Hands-On Lab

 

Photo of Keith Thompson

Keith Thompson

DevOps Training Architect II in Content

Length

01:30:00

Difficulty

Intermediate

Occasionally, we need to be able to interact with our Chef Server from our workstations in a way that Knife doesn't handle by default. Whether the situation is that we need to interact with a private cloud, manipulate data from the Chef Server in a specific way, or want to add completely new functionality to Knife, writing a custom plugin can be a good approach. In this learning activity, you'll write a Knife plugin that will allow you to export node information from the Chef Server in CSV format so that it can be used by others in their spreadsheet application of choice. By the time you've finished this activity, you should feel comfortable structuring a custom Knife plugin so that you can add more functionality to Knife in the future.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.