{"id":8162,"date":"2020-01-02T22:24:41","date_gmt":"2020-01-02T22:24:41","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=8162"},"modified":"2021-11-15T06:49:03","modified_gmt":"2021-11-15T06:49:03","slug":"chef-lab-and-excercise-cookbooks-part-3","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/chef-lab-and-excercise-cookbooks-part-3\/","title":{"rendered":"Chef Lab and Excercise &#8211; Cookbooks &#8211; Part 3"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Write a cookbook using install version of latest tomcat and deploy a Jenkins.war file into tomcat web directory.<\/li><li>Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the service.<\/li><li>Write a cookbook to unzip a file, and then move a files from one location to another using batch, bash chef resources?<\/li><li>Write a cookbook to install git, wget, zip in RHEL and Ubuntu.<\/li><li>Write a cookbook in which create a file using a string, but only if \u201c\/etc\/passwd\u201d exists<\/li><li>Write a coobook to run a batch file that unzips and then moves files from one location to another.<\/li><li>Write a cookbook to install apache http server in CentOs and Ubuntu, enable the services and start the service and index.html must be displayed with a value from template with attributes of Default attribute in \/attributes\/default.rb and Normal attribute set in a recipe and automatic attributes.<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_80266\"><iframe loading=\"lazy\"  id=\"_ytid_14254\"  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_80266\"  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>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 server in CentOs&#8230; <\/p>\n","protected":false},"author":1,"featured_media":8179,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[88],"tags":[],"class_list":["post-8162","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\/8162","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=8162"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8162\/revisions"}],"predecessor-version":[{"id":25239,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/8162\/revisions\/25239"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/8179"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=8162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=8162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=8162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}