Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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 another-recipe such as

include_recipe 'another-recipe.rb'

How to call another chef recipe with another Cookbook?

You can use include_recipe with a cookbookname::recipe of the another cookbook such as

include_recipe 'ebs::raids'
include_recipe '::my_java' # works still after you rename your cookbook
include_recipe 'base::my_java' # works only as long as your cookbook name is base

But when there is a include_recipe ‘my_java’ line in cookbook, which also requires a depends ‘my_java’ line in metadata.

Running multiple Chef Cookbook at a time?

You can add multiple Cookbook in one using following…

chef-client -z --runlist 'recipe[cookbook1::default],recipe[cookbook2::default],recipe[cookbook3::default],recipe[cookbook4::default]'
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.