<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by dolapo badru on Medium]]></title>
        <description><![CDATA[Stories by dolapo badru on Medium]]></description>
        <link>https://medium.com/@dolapobadru?source=rss-78a9baee9e38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9Xd3stulosyj_bIBXqMx3w@2x.jpeg</url>
            <title>Stories by dolapo badru on Medium</title>
            <link>https://medium.com/@dolapobadru?source=rss-78a9baee9e38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:49:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dolapobadru/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Chef : A Beginner’s Guide]]></title>
            <link>https://medium.com/@dolapobadru/chef-a-beginners-guide-c5af52855594?source=rss-78a9baee9e38------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5af52855594</guid>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[dolapo badru]]></dc:creator>
            <pubDate>Sun, 26 Mar 2023 12:58:41 GMT</pubDate>
            <atom:updated>2023-03-26T12:58:41.732Z</atom:updated>
            <content:encoded><![CDATA[<h3>Chef : A Beginner’s Guide</h3><p>First of , if you know nothing of automation, IAC (Infrastructure as Code) and Configuration Management, the first thought you should have about the word “<strong>Chef”</strong> will probably be about cooking and someone who is an expert at making meals for a living.</p><figure><img alt="A chef in the kitchen , trying to finish his cooking" src="https://cdn-images-1.medium.com/max/1024/0*kqj_FflKfqYX-5c5" /><figcaption>Photo by <a href="https://unsplash.com/it/@louishansel?utm_source=medium&amp;utm_medium=referral">Louis Hansel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Well, that’s not what this article is about, sorry to the foodies. What this article is about instead is a tool, that is mostly used to automate managing infrastructure and application deployment using a term known as Infrastructure as Code(IAC).</p><p>Over the next couple of lines, I will try to break down exactly what Chef does, how it uses Infrastructure as Code , its architecture and how it can help you automate your infrastructure.</p><p>I believe the creator of Chef was having fun while creating this tool because its language relates to some of the things you can find in a kitchen.</p><h4><strong>So what is Chef</strong> ?</h4><p>Chef is an open-source configuration management tool and infrastructure automation tool that helps its users manage and configure their infrastructure (i.e servers, networks , computers) . Chef uses IAC which means you can define how you want your infrastructure to be as code and it’ll help you get your infrastructure to that state, which is known as your desired state.</p><p>Chef is also written in Ruby , which is very easy to use and can be integrated with any cloud platform like Microsoft Azure, AWS and Google Cloud , making it easy to also automate infrastructure management in the cloud.</p><h4><strong>So , how does Chef Work?</strong></h4><p>Chef has three basic components; chef workstation , chef server and chef client/ node.</p><p>The chef workstation is a computer that is used to create,test and apply chef code , which are known as recipes/cookbooks that are used for infrastructure configuration/management. The code is tested and confirmed to be working before being uploaded to the Chef Server.</p><p>The Chef workstation must have the Chef DK(Development kit) installed on it to be able to create and test chef code</p><p>The Chef Server acts as a storage for chef code or configuration that will be applied to the machines managed by Chef which are called nodes.</p><p>Chef Client is the component that applies chef code on the nodes managed by Chef. Any machine where the chef client is installed is called a node.</p><figure><img alt="An image of Chef Architecture" src="https://cdn-images-1.medium.com/max/437/1*m9958O8VJVFM_M8-Q5w4Mw.jpeg" /></figure><p>Chef workstation uses a tool called <strong>knife </strong>to communicate with the chef server in a secure manner using RSA Key Pairs. The chef client also communicates with the chef client using RSA key pairs and a tool called “ohai”.</p><p>Once there’s communication between a chef server and the client. the client uses ohai to gather information about the nodes from the server and then compares that information with the current configuration on the node, if there are any changes, the chef client brings that node to the desired state as gotten from the chef server which usually comes in the form of cookbooks and recipes.</p><h4>Chef Resources, Recipes,Cookbooks and Run-lists</h4><p>Now that we know how Chef works and its Architecture , a question that should be on your minds is how exactly do we automate our infrastructure management with Chef.</p><p>We do that using chef code which include resources,recipes and cookbooks and that is what is used to manage your infrastructure.</p><p>Cookbooks are made up of recipes and recipes are made up of resources.</p><p>Resources are the building blocks of chef code and they are statements inside a recipe that tells Chef what to do . There are different kinds of resources e.g file , package , user e.t.c. These perform specific action on the node .</p><pre>file &#39;/var/www/customers/public_html/index.php&#39; do<br>  content &#39;&lt;html&gt;This is a placeholder for the home page.&lt;/html&gt;&#39;<br>  mode &#39;0755&#39;<br>  owner &#39;web_admin&#39;<br>  group &#39;web_admin&#39;<br>end<br><br>## An example of a resource , a file resource<br></pre><p>Recipes are set of instructions used to configure your infrastructure and they are made up of multiple resources. An example of a recipe can be configuring a web server or configuring a user and a group.</p><pre>## A recipe to configure a user and a group<br><br>group &#39;developers&#39; do<br>  gid &#39;5000&#39;<br>end<br><br>user &#39;john&#39; do<br>  uid &#39;1000&#39;<br>  gid &#39;developers&#39;<br>  home &#39;/home/john&#39;<br>  shell &#39;/bin/bash&#39;<br>end</pre><p>A cookbook is a collection of recipes to achieve a specific configuration or goal for a node or group of nodes. Cookbooks in Chef are an important part of the Infrastructure as Code (IAC) approach, which allows users to define and manage infrastructure through code. By defining the desired state of the infrastructure in code, Chef can automate the entire process of provisioning, deploying, and managing infrastructure, making it more efficient, consistent, and scalable. An example of a cookbook would be a MYSQL Cookbook , which is a set of recipes that can be used to install MYSQL on a node.</p><p>It is also important to note that a cookbook contains other things like files , documentation , templates and tests and it has a well defined directory structure. Chef helps you with creating this directory structure by running this command on your chef workstation.</p><pre>## chef command to generate a cookbook<br><br>chef generate cookbook [cookbook_name]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*CchjjU7-PQcKwaethsrcUQ.png" /><figcaption>Chef Cookbook directory structure.</figcaption></figure><p>You also have what is known as <strong>run-lists</strong> which help you determine which recipes need to be run on which node and in which order. Run-lists are configured on the chef server.</p><p>Now that we know all these, Let us go through the normal chef workflow using the client, server and workstation architecture.</p><h4>Steps</h4><ol><li>You create the chef-code on your chef workstation (cookbooks/ recipes).</li><li>You test the code on your chef-workstation to confirm the code is working as expected.</li><li>You upload the code to the Chef Server.</li><li>You create a run-list to know which recipes should be run on which nodes and the order.</li><li>Once the run-list is defined . you run chef-client on the nodes to apply the configurations on the Chef server.</li></ol><p>Chef Operates with a pull-based configuration model where the nodes communicate with the server and retrieve configurations from it. It can likened to a buffet where the people being fed go to pick up food from array of options.</p><p>This is just a brief introduction to Chef and hopefully in my next article,I can go in-depth into the technical details with using chef including breaking down chef code and commands to run to implement the full Chef workflow.</p><p>I hope this helps anyone looking to get started with Chef.</p><p>Thank you and Happy Cooking !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5af52855594" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diving into Data Science]]></title>
            <link>https://medium.com/@dolapobadru/diving-into-data-science-aa865580dcc8?source=rss-78a9baee9e38------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa865580dcc8</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[dolapo badru]]></dc:creator>
            <pubDate>Sun, 09 Dec 2018 13:36:10 GMT</pubDate>
            <atom:updated>2018-12-09T13:36:10.107Z</atom:updated>
            <content:encoded><![CDATA[<p>This year has been quite a very interesting one for me, with regards to personal development and pushing my limits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/269/1*fRpGQtNH2_iaHinpO67SWA.jpeg" /></figure><p>Before the year 2018, I had little information about Data science or Artificial intelligence which is a growing wave in the computer technology industry. I had taken some courses over the years but none quite captivated me the way AI did and I have my very good friend to thank for that, <a href="https://medium.com/u/be18395dc594">Sadiq Aderinto</a>. He was a member of AISaturday’s Lagos and he encouraged me to join the group.</p><p>AI Saturdays is a Group of very committed and Intelligent individuals that are passionate about Artificial Intelligence, Machine and Deep Learning and run classes teaching beginners about the basics and all the technical aspect of Machine Learning for 16 Saturdays. The classes were really explanatory and I gained a lot of Knowledge over this period which recently ended.</p><p>To improve my Knowledge and understanding, I’ve been taking some online courses on MOOC’s like Edx, where I took the Introduction to Python for Data Science course, I am also taking Machine Learning on Coursera by Andrew Ng and also a Deep learning Scholarship on Udacity.</p><p>I have also participated in some competitions to test my ability and how much I need to improve to be World Class in this particular field, most notably the Data Science Nigeria Inter Campus Machine Learning Competition and the AI Saturday’s Hackathon in which I did reasonably well at both these competitions.</p><p>There will be a lot more I am going to do to improve on my skill set and test my abilities, one of which is to follow and complete Siraj Raval’s three-month Data Science Curriculum and take on more data science Projects and Competitions.</p><p>Up to this point, it has been a very interesting and challenging path and I’m pretty much excited for the Future and its numerous opportunities and Potentials.</p><p>The Future is all about Data and AI . and I’m ready to be a part of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa865580dcc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>