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'Code language: JavaScript (javascript)
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 baseCode language: PHP (php)
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]'Code language: JavaScript (javascript)
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals