Thursday, May 5, 2022

Configuration management tools (CHEF)

CM Tools
=======
Chef
Ansible
Puppet
Salt Stack

All the above tools , purposefully same

we need 3 configurations items
======================

1). Work Station.
2). Chef Server.
3).  Worker Nodes.

Chef Workstation Installation in Linux:


1). Chef Work Station.  (Windows)





click on window11 download it will download "chef-workstation-22.4.861-1-x64"

Double click on chef-workstation-22.4.861-1-x64.msi downloaded file



















Click on Finish.

Installation is completed .




2). Chef Server 












we will get one email notification to activate chef server account. 











Enter the password which ever you like and remember the password for next logins . 



3). Worker Nodes - Chef Starter 

The first thing you’ll do is go to the administration tab and download the starter kit.


 
Chef starter will be downloaded in zip format,  unzip it and copy to other folder where you want keep the chef files.
 
In my case I coped to G:\DEVOPS\Chef



Open command CW Power shell, Icon is created while check-workstation installation on our desktop. 





Go to Chef-repo location in power shell with the below command 

        cd G:\DEVOPS\Chef\chef-starter\chef-repo

Able to see all the files in that location: 

Attaching a Node1 to chef server with the below command

knife bootstrap <Node IP> -U root -P <Password> -N Node-1

  eg: knife bootstrap 192.168.2.128 -U root -P root123 -N Node-1


In check server it will see as below once it is added. 


If you get this error first time use this command for the first command :

PS G:\DEVOPS\chef-starter\chef-repo> knife bootstrap 192.168.2.133 -U root -P root123 -N Node-1
ERROR: LicenseAcceptance::LicenseNotAcceptedError: Missing licenses for the following:
       * infra-client
       * inspec

PS G:\DEVOPS\chef-starter\chef-repo> knife bootstrap 192.168.2.133 -U root -P root123 -N Node-1 --chef-license accept


No comments:

Post a Comment