{"id":8160,"date":"2022-11-22T03:26:44","date_gmt":"2022-11-22T03:26:44","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8160"},"modified":"2022-12-23T05:45:29","modified_gmt":"2022-12-23T05:45:29","slug":"chef-lab-and-excercise-recipe-part-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/chef-lab-and-excercise-recipe-part-2\/","title":{"rendered":"Chef Lab and Excercise &#8211; Recipe &#8211; Part 2"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Submit a Assignment of <a href=\"https:\/\/www.debug.school\/\" target=\"_blank\" rel=\"noreferrer noopener\">www.Debug.school<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Write a recipe using <strong>template <\/strong>resources to create a file, but only if an attribute has a specific value.<\/li>\n\n\n\n<li>Write a recipe and set same <strong>attributes <\/strong>in following location and decide precedence.\n<ul class=\"wp-block-list\">\n<li>&#8211; Default attribute in \/attributes\/default.rb<\/li>\n\n\n\n<li>&#8211; Default attribute in node object in recipe<\/li>\n\n\n\n<li>&#8211; Normal attribute set in a recipe<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Write a recipe to create a file using a string, but <strong>not if<\/strong> \u201c\/etc\/passwd\u201d exists?<\/li>\n\n\n\n<li>Write a recipe to install vim&#8217;, &#8216;git&#8217;, &#8216;curl using <strong>loops<\/strong><\/li>\n\n\n\n<li>Write a recipe to create a file in \/tmp\/if_only <strong>only if<\/strong> there is a php executable currently installed on this system.# which php<\/li>\n\n\n\n<li>Write a recipe to install httpd using <strong>not_if<\/strong> system is CentOS.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><\/li>\n<\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_86217\"><iframe loading=\"lazy\"  id=\"_ytid_34788\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_86217\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Submit a Assignment of www.Debug.school<\/p>\n","protected":false},"author":1,"featured_media":8181,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[88],"tags":[],"class_list":["post-8160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chef"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=8160"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8160\/revisions"}],"predecessor-version":[{"id":31833,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8160\/revisions\/31833"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8181"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}