Let’s go through some of the basic details of Chef.
Chef, open source configuration management tool has three architectural components. The Chef Server or Hosted Chef, the Chef Workstation, and Chef Client (Node):
The Chef Server/Hosted Chefis central management console and there are two options for the Chef Server: a hosted Chef solution or an on-premises installation. We will be using a hosted solution to avoid installation of Chef server ion premise.
The Chef Client(node) is the agent that sits on the servers you are managing.
The Chef Workstationis admin workstation where we create policies (Cookbooks and recipies) and execute management commands. We will run the “knife” command from the Chef Workstation to manage our infrastructure.
We will perform following steps to make Chef functional:
- Create hosted Chef account where we can manage some resources for free – Create new organization and Download starter kit to configure Chef-Workstation and Chef-Client
- Install ruby
- Prepare Chef Workstation – Install a Chef Client and Install Chef Development Kit
- Install Knife-azure Plugin
- Creating a Template
- Creating Cookbook
- Execute knife-azure to create Virtual Machine on Microsoft Azure