{"id":530,"date":"2017-02-27T18:48:58","date_gmt":"2017-02-27T18:48:58","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2017\/02\/27\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/"},"modified":"2021-02-27T09:49:37","modified_gmt":"2021-02-27T09:49:37","slug":"write-10-chef-cookbooks-to-test-your-chef-programming-skills-2","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/","title":{"rendered":"Write 10 Chef Cookbooks to test your chef programming skills"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3024 size-full\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png\" alt=\"chef-cookbooks\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to--300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<ol>\n<li>Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the service.<\/li>\n<li>Write a recipe using template resources to create a file, but only if an attribute has a specific value.\n<ol>\n<li>Write a recipe to create a file using a string, but not if \u201c\/etc\/passwd\u201d exists?<\/li>\n<\/ol>\n<\/li>\n<li>Write a cookbook to unzip a file, and then move a files from one location to another using batch, bash chef resources?<\/li>\n<li>Create a role and assign any two cookbooks to role and setup a 2 nodes assigned to role and conerse the role.<\/li>\n<li>Write a cookbook using install version of latest tomcat and deploy jenkins.war files into war.<\/li>\n<li>Write a 4 cookbooks php, mysql, apache and webapp respectively and map a dependency between them and install a sample web application.<\/li>\n<li>Write a cookbook to install git, wget, zip in RHEL and Ubuntu.<\/li>\n<li>Write a cookbook in which create a file using a string, but only if \u201c\/etc\/passwd\u201d exists<\/li>\n<li>Write a coobook to run a batch file that unzips and then moves files from one location to another.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3024,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[88],"tags":[407,642,1053,1054,1055,605,1050,1051,430,1049,1052],"class_list":["post-530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chef","tag-chef","tag-chef-cookbook","tag-chef-programming","tag-chef-programming-skills","tag-chef-programming-test","tag-chef-recipe","tag-cookbooks","tag-skills","tag-test","tag-write","tag-write-chef-cookbooks"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Write 10 Chef Cookbooks to test your chef programming skills - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Write 10 Chef Cookbooks to test your chef programming skills - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-27T18:48:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:49:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Write 10 Chef Cookbooks to test your chef programming skills\",\"datePublished\":\"2017-02-27T18:48:58+00:00\",\"dateModified\":\"2021-02-27T09:49:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/\"},\"wordCount\":193,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/write-10-chef-cookbooks-to-.png\",\"keywords\":[\"Chef\",\"Chef cookbook\",\"Chef programming\",\"Chef programming skills\",\"Chef programming test\",\"Chef recipe\",\"Cookbooks\",\"Skills\",\"Test\",\"Write\",\"Write chef cookbooks\"],\"articleSection\":[\"Chef\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/\",\"name\":\"Write 10 Chef Cookbooks to test your chef programming skills - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/write-10-chef-cookbooks-to-.png\",\"datePublished\":\"2017-02-27T18:48:58+00:00\",\"dateModified\":\"2021-02-27T09:49:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/write-10-chef-cookbooks-to-.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/write-10-chef-cookbooks-to-.png\",\"width\":600,\"height\":400,\"caption\":\"chef-cookbooks\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Write 10 Chef Cookbooks to test your chef programming skills\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Write 10 Chef Cookbooks to test your chef programming skills - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/","og_locale":"en_US","og_type":"article","og_title":"Write 10 Chef Cookbooks to test your chef programming skills - scmGalaxy","og_description":"Write a cookbook using you can install apache http server in CentOs and Ubuntu, enable the services and start the [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/","og_site_name":"scmGalaxy","article_published_time":"2017-02-27T18:48:58+00:00","article_modified_time":"2021-02-27T09:49:37+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Write 10 Chef Cookbooks to test your chef programming skills","datePublished":"2017-02-27T18:48:58+00:00","dateModified":"2021-02-27T09:49:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/"},"wordCount":193,"commentCount":1,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png","keywords":["Chef","Chef cookbook","Chef programming","Chef programming skills","Chef programming test","Chef recipe","Cookbooks","Skills","Test","Write","Write chef cookbooks"],"articleSection":["Chef"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/","name":"Write 10 Chef Cookbooks to test your chef programming skills - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png","datePublished":"2017-02-27T18:48:58+00:00","dateModified":"2021-02-27T09:49:37+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/02\/write-10-chef-cookbooks-to-.png","width":600,"height":400,"caption":"chef-cookbooks"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/write-10-chef-cookbooks-to-test-your-chef-programming-skills-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Write 10 Chef Cookbooks to test your chef programming skills"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=530"}],"version-history":[{"count":4,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":3230,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/530\/revisions\/3230"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/3024"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}