Create an Account in Chef Server and Attach Workstation to Chef Server

Share via:

Create an Account in Chef Server and Attach Workstation to Chef Server

In this article,we will see Create an Account in Chef Server and Attach Workstation to Chef Server.

Chef Server

chef server is going to be a hub for the code (cookbooks).

Nodes pull code from chef server.

As the center of operations, the Chef server stores, manages, and provides configuration data to all other Chef components.

The Chef server acts as a hub for configuration data.

The Chef server stores cookbooks, the policies that are applied to nodes, and metadata that describes each registered node that is being managed by Chef. Nodes use the Chef client to ask the Chef server for configuration details, such as recipes, templates, and file distributions.

Steps to follow

Create an Account in chef server

  1. Go to chef server official website.
  2. Provide Required Details.
  3. Verify your Email.
  4. Create New Organization.

Establish communication between Workstation and Chef Server

  1. Download Starter Kit.
  2. Unzip Starter Kit.
  3. Copy chef-repo to your Workstation”Chef-Workstation” through WinScp.
  4. Verify the directory “chef-repo” in your workstation “Chef-Workstation”.
  5. Verify the connection between workstation and chef server (be inside chef-repo).

Create an Account in chef server

Go to chef server official website

We need to go chef server official website by using below link.

https://manage.chef.io/

Click on click here to get started to create a new account.

Provide Required Details

Provide required details and click on Get started.

Verify your Email

Go to your mail and click confirmation link.

Provide password and click on Create User.

Create New Organization

Click on Create New Organization.

Specify Full Name and Short Name for you organization then click on Create Organization.

We can see the your organization “ramesh-chef-ktexperts” which was created earlier.

Establish communication between Workstation and Chef Server

Download Starter Kit

Go to Administration and select your organization “ramesh-chef-ktexperts”

Go to Starter Kit and click on Download Starter Kit.

Click on Proceed.

The starter kit has been downloaded successfully.

 

Unzip Starter Kit

After unzip,we can see onde folder with name of chef-repo.

Go inside chef-repo,

we can see there folders .chef,cookbooks and roles.

we can 2 files inside the .chef folder.

Once open the PEM file”ramesh-ktexperts.pem” ,we can find one URL regarding to chef server.

Copy chef-repo to your Workstation”Chef-Workstation” through WinScp

Select your workstation and click on connect.

Copy username and DNS of your workstation.

Open WinScp,paste the username and DNS in the Hostname field then click on Advanced.

Go to Authentication,upload your workstation ppk file and click on ok.

Click on Login.

Select chef-repo and drag to your workstation (/home/ec2-user).

Verify the directory “chef-repo” in your workstation “Chef-Workstation”

Connect to your workstation “Chef-Workstation” through Putty

 

Open workstation Linux Terminal

 

Switch to root user

To see the list of files/directories

we can see the chef-repo directory which was copied from local machine(windows) through WinScp Tool.

Verify the connection between workstation and chef server

Go inside chef-repo

Run below command to verify the connection

The communication has been established successfully.

 

Thank you for giving your valuable time to read the above information.

Follow us on 

Website :  www.ktexperts.com

Facebook Page : KTexperts

Linkedin Page : KT EXPERTS

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

One thought on “Create an Account in Chef Server and Attach Workstation to Chef Server

  1. I really like the way this website is maintained. The perfect materials are released at perfect times. I love to stay updated with this website

Add Comment