Open In App

Automation using Chef

Chef is a configuration management technology developed by Opscode to manage infrastructure on physical or virtual machines. It is an open source tool developed using Ruby and Erlang. As we are living in a robust world where there are new features coming everyday and we need proper mechanisms to manage the rapid pace of development.

Chef Architecture :



Component of Chef Architecture :
Chef has major components such as Workstation, Cookbook, Node, and Chef-Server. Let us see the entire major component in detail.



  1. Workstation –
    The workstation is used to interact with Chef-server and Chef-nodes. It is also used to create Cookbooks. Workstation is a place where all the interaction takes place, where Cookbooks are created, tested and deployed, and in workstation, codes are tested. Workstation is also used for defining roles and environments based on the development and production environment.
    Knife is used for interacting with Chef Nodes.
  2. Chef Server –
    Chef server contains all configuration data, it also stores cookbooks, recipes and metadata that describe each node in the Chef-Client. Configuration details are given to node through Chef-Client. Any changes made must pass through the Chef server to be deployed. Prior to pushing the changes, it verifies that the nodes and workstation are paired with the server through the use of authorization keys, and then allow for communication between workstations and nodes.
  3. Node –
    Nodes are managed by Chef and each node is configured by installing Chef-Client on it. Chef-Nodes are a machine such as physical, virtual cloud etc.
  4. Cookbooks –
    Cookbooks are created using Ruby language and Domain Specific languages are used for specific resources. A cookbook contains recipes which specify resources to be used and in which order it is to be used. The cookbook contains all the details regarding the work and it changes the configuration of the Chef-Node.

Advantages of Using Chef :

Disadvantages of Chef :

Article Tags :