Chef Tutorial Series, Part 3: Installation in 3 Steps
In previous posts, Understanding Chef Basics with 3Q’s and Delving into More Chef Basics, we started you on a journey to become better acquainted with Chef elements, their functions, node objects, policies and cookbooks.
Now that you likely have the fundamentals of Chef in your pantry, today, let’s start cooking with Chef.
In this post, you will learn how to install a hosted Chef server and Chef client.
As we noted before, Chef servers come in two flavors:
To start, let’s set up hosted Chef Server.
Step1: Signup for Free Hosted Chef Server (get up to 5 nodes free)
After you sign up, Chef requires that you are already part of an organization or that you create a new one. I’ve created a new sample organization for the purpose of this article:
When you provide an organization name and a short name, the following dashboard is displayed:
Step 2: Install Chef-Repo
Next, click on the “Download Starter Kit” button and download the Chef-starter zip folder to a root directory.
After extracting it, the Chef-repo folder is available. The following contents will be in it:
Step 3: Install Chef Client
Now, let’s install Chef client Go here it get it started.
Next, run the .msi file and install Chef client on your system.
Then follow the steps that come after.
To verify if the right organization is linked to the right client, open the knife.rb file by navigating to:
chef-repo> .chef > knife.rb
Then open the knife.rb file in an editor. The following screenshot displays what you should expect to see as the file contents:
Now, let’s run the first knife command to verify the installation:
In three easy steps, you have now installed a hosted Chef server and Chef client. We will post more about Chef very soon!
While you wait, learn more today about how you can start building resilience and agility for your small or medium-sized business, or even ease AWS management for large enterprises. Visit us at Flux7.com and click here now to check out the Assessment Packages available for all kinds of businesses like yours.