MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Chef Lab and Excercise – Cookbooks – Part 5

  1. Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the service.

  2. Write a recipe using template resources to create a file, but only if an attribute has a specific value.

  3. Write a recipe to create a file using a string, but not if “/etc/passwd” exists?

  4. Write a cookbook to unzip a file, and then move a files from one location to another using batch, bash chef resources?

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

  6. Write a cookbook using install version of latest tomcat and deploy jenkins.war files into war.

  7. Write a 4 cookbooks php, mysql, apache and webapp respectively and map a dependency between them and install a sample web application.

  8. Write a cookbook to install git, wget, zip in RHEL and Ubuntu.

  9. Write a cookbook in which create a file using a string, but only if “/etc/passwd” exists

  10. Write a coobook to run a batch file that unzips and then moves files from one location to another.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
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.

Related Posts

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…

Read More

Chef Lab and Excercise – Cookbooks – Part 6

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…

Read More

Chef Training Roadmap for DevOps Engineers: Course Tracks, Lab Workflow, and Practical Commands

This guide turns a promotional Chef training post into a practical roadmap for engineers. Compare course levels, understand the learning workflow, and use hands-on commands you can run in a lab.

Read More

Provision an AWS EC2 Instance with Chef (Legacy ChefDK Workflow)

A practical, step-by-step walkthrough for provisioning an AWS EC2 VM using the classic ChefDK and chef-provisioning approach. Includes workflow, commands, recipe examples, and validation checks for legacy environments.

Read More

Chef Command-Line Reference: Essential chef-solo, chef-client, and Knife Workflows

A task-oriented reference for frequently used Chef and Knife commands, from cookbook scaffolding to node bootstrap and run-list management. Includes workflow guidance and copy-ready command examples.

Read More

Chef Interview Q&A (Part 2): Resources, Run-Lists, Bootstrap, and Test Kitchen

A practical rewrite of classic Chef interview questions, focused on how Chef resources converge, how run-lists drive node configuration, and how to test cookbooks safely. Includes command examples, workflow diagrams, and comparison tables.

Read More
Subscribe
Notify of
guest
2 Comments
Newest
Oldest Most Voted
Claire Thompson
Claire Thompson
15 days ago

While building different Chef cookbooks, it is important to practice handling configuration differences instead of relying on a single fixed environment. For example, a recipe may need to install different package versions, manage service settings, or apply environment-specific templates depending on the target node. Testing these conditions helps developers understand how Chef attributes, templates, resources, and guards work together. Another useful exercise is to run the same cookbook multiple times and confirm that it makes no unnecessary changes after the desired state has been reached. This develops a stronger understanding of reliable and maintainable infrastructure automation.

Karan Malhotra
Karan Malhotra
1 month ago

To properly evaluate Chef cookbook skills, it helps to test how recipes behave when applied repeatedly or on machines with existing configurations. Reliable automation should produce consistent results without making unnecessary changes or leaving systems in an inconsistent state after a failure. Testing idempotency, handling package dependencies, and verifying service recovery can reveal problems that simple installation tests might miss. These practical checks help ensure cookbooks remain predictable and safe when deployed across multiple production environments.

2
0
Would love your thoughts, please comment.x
()
x