Chef Terminology and Definition Guide

Chef Server: a central server that stores information and manages provisioning of the nodes Chef Node: an individual server that is managed by a Chef Server Chef Workstation: a controller…

Read more »

Chef Command Line Complete References

chef-server-ctl Command line reference knife Command line reference Chef Command line reference Chef frequently used commands collection

Read more »

Chef Infra Server and Administrator Guide and Reference

Chef Infra Server Install and Configuration Chef Infra Workstation Install and Configuration using Knife Chef Node Install and Configuration using Chef Client in Windows How to run chef-client in why-run…

Read more »

Understanding a Chef Cookbook Anatomy with Example

Understanding the chef cookbook’s chefignore file Understanding the chef cookbook’s Berkshelf file What is the significance of the default directory under chef cookbook /templates? Understanding the chef cookbook’s README file…

Read more »

Chef Cookbook and Recipe Developement Guide and Reference with Example

How to install Chef Development Kit(ChefDK) How to install chefDK in RHEL, Ubantu, Mac and Windows Chef Terminology and Definition Guide Example of Chef Recipe Program Top 10 Chef in-built…

Read more »

Explained Chef AKA Chef Infra Architecture

How Chef node and Chef Server Works? Chef Internal – How Chef maintain the state of each resources internally?

Read more »

Chef Lab and Excercise – Test Your Chef Skills

Chef Lab and Excercise – Recipe – Part 1 Chef Lab and Excercise – Recipe – Part 2 Chef Lab and Excercise – Cookbooks – Part 3 Chef Lab and…

Read more »

How to share code between Chef recipes using module?

The simplest thing would be is moving this do stuff to library. my_cookbook/libraries/myhelper.rb: Then you can use this module in recipes like that: Just make sure you add a dependency…

Read more »

How to call another chef recipe within same or other Cookbook?

How to call another chef recipe within same or other Cookbook? How to call another chef recipe within same Cookbook? You can use include_recipe with a file name of the…

Read more »

Chef Errors and Solutions Database

Chef Error: Could not find cookbook cookbooks_test in your cookbook path, sk Chef Error: Network Error: getaddrinfo: nodename nor servname provided, or Chef Error: Getting Error while executing Che recipe…

Read more »

Chef Lab and Excercise – roles – Part 4

Create a role and assign any two cookbooks to role and setup a 2 nodes assigned to role and conerse the role.

Read more »

Chef Lab and Excercise – Cookbooks – Part 3

Write a cookbook using install version of latest tomcat and deploy a Jenkins.war file into tomcat web directory. Write a cookbook using you can install apache http server in CentOs…

Read more »

Chef Lab and Excercise – Recipe – Part 2

Write a recipe using template resources to create a file, but only if an attribute has a specific value. Write a recipe and set same attributes in following location and…

Read more »

Chef Lab and Excercise – Recipe – Part 1

Write a recipe to create a file which should be owned by group called “root”, user “ec2-user” and permission executable. Write a recipe to updates the access (atime) and file…

Read more »

Understanding Chef Node Objects json content!

Chef Node Objects Defined! For the chef-client, two important aspects of nodes are groups of attributes and run-lists. An attribute is a specific piece of data about the node, such…

Read more »

Understanding the chef cookbook’s chefignore file

The chefignore file is used to tell knife which cookbook files in the chef-repo should be ignored when uploading data to the Chef server. The type of data that should…

Read more »

run_list and env_run_list explanined in chef role

run-list A run-list defines all of the information necessary for Chef to configure a node into the desired state. A run-list may include roles and/or recipes. A run-list must be…

Read more »

How to run chef-client in why-run mode aka “no-operation”

why-run mode is a way to see what the chef-client would have configured, had an actual chef-client run occurred. This approach is similar to the concept of “no-operation” (or “no-op”):…

Read more »

List Of Chef Tools and their explainations

Chef Code Correctness (Chef Code Analysis) Foodcritic Tutorials Rubocop Chef Unit Testing ChefSpec Chef Integration Testing TestKitchen ServerSpec RSpec Some other tools which can be used along with Chef dsh…

Read more »

Understanding the chef cookbook’s Berkshelf file

Configuration Management using chef is being implemented with the help of desire files, which is often called a “cookbooks” in chef. Usuallay separate cookbooks is written in practice for each…

Read more »