Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Chef Lab and Excercise – Recipe – Part 2

Submit a Assignment of www.Debug.school

  • 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 decide precedence.
    • – Default attribute in /attributes/default.rb
    • – Default attribute in node object in recipe
    • – Normal attribute set in a recipe
  • Write a recipe to create a file using a string, but not if “/etc/passwd” exists?
  • Write a recipe to install vim’, ‘git’, ‘curl using loops
  • Write a recipe to create a file in /tmp/if_only only if there is a php executable currently installed on this system.# which php
  • Write a recipe to install httpd using not_if system is CentOS.
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x