Chef

Hello Readers!!! Welcome to my blog.

In my previous blog (Popular DevOps Tool) I gave brief overview about configuration management tool. This blog will focus on one of the most popular configuration management tool i.e Chef.

Chef is a powerful automation platform that transforms complex infrastructure into code, bringing your servers and services to life. Whether you’re operating in the cloud, on-premises, or a hybrid, Chef automates how applications are configured, deployed, and managed across your network, no matter its size. The workstation, Chef Server, and nodes are the three major components of Chef. Chef is written in Ruby and Erlang language. It is product of Opscode.

Major Components in details:

WorkStation

A workstation is a computer that is configured to run various Chef command-line tools that synchronize with a chef-repo, author cookbooks, interact with the Chef server, interact with nodes, or applications like Delivery. The workstation is the location, from which most users do most of their work, which includes the following:

  1. Developing cookbooks and recipes (and authoring them using Ruby syntax and patterns).
  2. Keeping the chef-repo synchronized with version source control.
  3. Using command-line tools.
  4. Configuring organizational policy, including defining roles and environments and ensuring that critical data is stored in data bags.
  5. Interacting with nodes, as (or when) required, such as performing a bootstrap operation.

Chef Server  

The Chef server acts as a hub for configuration data. The Chef server stores cookbooks, the policies that are applied to nodes, and metadata that describes each registered node that is being managed by the chef-client. Nodes use the chef-client to ask the Chef server for configuration details, such as recipes, templates, and file distributions. The chef-client then does as much of the configuration work as possible on the nodes themselves (and not on the Chef server). This scalable approach distributes the configuration effort throughout the organization.

Node

A node is any machine—physical, virtual, cloud, network device, etc.—that is under management by Chef.

Other Components

Resources

Resources are the fundamental building blocks of chef configuration. Ex: Networking, packages, file system, user etc.

Cookbooks

A cookbook is the fundamental unit of configuration and policy distribution. A cookbook defines a scenario and contains everything that is required to support that scenario:

  1. Recipes that specify the resources to use and the order in which they are to be applied
  2. Attribute values
  3. File distributions
  4. Templates
  5. Extensions to Chef, such as libraries, definitions, and custom resources

Analytics

The Chef Analytics platform is a feature of Chef that provides real-time visibility into what is happening on the Chef server, including what’s changing, who made those changes, and when they occurred. Individuals may be notified of these changes in real-time. Use this visibility to verify compliance against internal controls.

Why Chef?

From IT automation to configuration management, Chef relies on recipes and resources so you can manage unique configurations and feel secure knowing Chef is checking your nodes and bringing them up to date for you.

Here are some key features of chef:

  1. Manage nodes from a single server.
  2. Cross-platform management for Linux, Windows, Mac OS, and more.
  3. Integrates with major cloud providers.
  4. Premium features available.

Thus, Chef is a thin DSL (domain-specific language) built on top of Ruby. This approach allows Chef to provide just enough abstraction to make reasoning about the infrastructure easy. Chef includes a built-in taxonomy of all the basic resources one might configure on a system, plus a defined mechanism to extend that taxonomy using the full power of the Ruby language. Chef has an extended API and more programmer friendly. Ruby was chosen because it provides the flexibility to use both the simple built-in taxonomy, as well being able to handle any customization path the organization requires.

Thank You!!!

Do Share your feedback and comments.

 

 

 

References

  1. https://docs.chef.io/chef_overview.html
  2. https://blog.profitbricks.com/51-best-devops-tools-for-devops-engineers/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s