Chef Node Objects Defined!

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 »

Understand the 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 »

Ecosystem of chef and Its associated tools explained

Chef Apply chef-apply is an executable program that runs a single recipe from the command line. Is part of the Chef development kit. A great way to explore resources Chef…

Read more »

How to install Chef Development Kit(ChefDK)

How to install Chef Development Kit(ChefDK)? The Chef development kit contains all you need to develop and test your infrastructure, built by the awesome Chef community. Its Chef Developer tool….

Read more »

Berkshelf in Chef explained?

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 »

week1 – Overview of Chef.pdf

week1 – Overview of Chef.pdf week1 – Overview of Chef.pdf

Read more »

week2 – Node setup, resources & recipes

week2 – Node setup, resources & recipes week2 – Node setup, resources & recipes

Read more »

week3 – Node setup, resources & recipes

week3 – Node setup, resources & recipes week3 – Node setup, resources & recipes

Read more »

week4 – Common configuration data with data bags

week4 – Common configuration data with data bags week4 – Common configuration data with data bags

Read more »

week5 – Using environments and knife-ec2

week5 – Using environments and knife-ec2 week5 – Using environments and knife-ec2

Read more »

week6 – Community cookbooks and further resources

Community cookbooks and further resources week6 – Community cookbooks and further resources

Read more »
logging-in-chef-explained

Logging in Chef Explained

Chef Server All logs generated by the Chef server can be found in /var/log/opscode. Each service enabled on the system also has a sub-directory in which service-specific logs are located,…

Read more »
chef-notifies-and-subscribes-explained-with-examples

Chef notifies and subscribes explained with examples

  Chef notifies and subscribes explained with examples A notification is a property on a resource that listens to other resources in the resource collection and then takes actions based…

Read more »
chef-internal

Chef Internal – How Chef maintain the state of each resources internally?

Chef Client A chef-client is an agent that runs locally on every node that is under management by Chef. The chef-client executable can be run as a daemon. When a…

Read more »

What is the significance of the default directory under chef cookbook /templates?

  What is the significance of the default directory under chef cookbook /templates? A cookbook is frequently designed to work across many platforms and is often required to distribute a…

Read more »
10-chef-cookbooks-to-test-y

Write 10 Chef Cookbooks to test your chef programming skills

Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the service. Write a recipe using template resources to create a…

Read more »
chef-cookbooks

Write 10 Chef Cookbooks to test your chef programming skills

Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the service. Write a recipe using template resources to create a…

Read more »
configure-the-knife-command

Configure the Knife Command – Chef

We now have to configure the knife command. This command is the central way of communicating with our server and the nodes that we will be configuring. We need to tell it…

Read more »
chef-solo

Chef solo | Chef solo Tutorial | Chef solo Guide

Install chef ============ > curl -L https://www.opscode.com/chef/install.sh | bash Check ===== > chef-solo -v Setup chef repository ===================== > wget http://github.com/opscode/chef-repo/tarball/master > tar zxvf master > mv opscode-chef-repo-f9d4b0c/ chef-repo >ls…

Read more »

Provision a AWS ec2 vm using chef | Step by Step Guide | AWS ec2 vm Tutorial

Provision a AWS ec2 vm using chef Step 1: Install chefdk Step 2: Setup AWS Credentails Step X: Setup your knife config Step X: Make sure following is set and…

Read more »
chefdk-installtion-process-rhel-ubantu-mac-windows

How to install chefDK in RHEL, Ubantu, Mac and Windows?

How to install chefDK in RHEL, Ubantu, Mac and Windows? How to install chefDK in RHEL Step 1: Download checfdk from https://downloads.chef.io/chef-dk/ > wget https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chefdk-0.9.0-1.el6.x86_64.rpm or > curl -o chefdk-0.9.0-1.el6.x86_64.rpm…

Read more »
chef-code-analysis-using-foodcritic

Chef Code Analysis using Foodcritic | Foodcritic Tutorial

What is Foodcritic? Foodcritic is a static linting tool that analyzes all of the Ruby code that is authored in a cookbook against a number of rules, and then returns…

Read more »
useful-tools-for-chef

Most Useful Tools for Chef

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

Read more »
implement-chef-roles-using-chef-server

How to Implement Chef roles using Chef server ?

What is Role? A role is a way to define certain patterns and processes that exist across nodes in an organization as belonging to a single job function. Each role…

Read more »
chef-commands-line-reference

Chef Commands Line Reference | Chef Commands Line Guide | Cheatsheet

To run single recipe using chef-solo > chef-solo -c /opt/chef/repo/config/solo.rb -o my_cookbook::recipe To run the single reciepe in same machine > chef-apply hello.rb To generate the cookbook standard structure >…

Read more »
chef-documenting-cookbooks

Chef – Documenting Cookbooks automatically

Problems Area – Our infrastructure has many cookbooks that aim to be reusable, primarily through encapsulating behaviour in LWRPs. This led to an explosion of LWRPs and sometimes the documentation…

Read more »