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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x