Chef Tutorial - Bootstrap to Nodes Automate Chef - Client (Cronjob)

Опубликовано: 12 Май 2026
на канале: Aws tutorial for beginners With Devops
1,806
20

#ChefTutorial
#Devops
#Chefbooks
#Chef cookbooks
#Chef Automation
#Chef Devops

Now will move to Chef server installation and create two nodes and
attach them to server will see the content in both nodes update...

1.Let's download chef starter kit.
Signin to your chef.io account left side will see starter kit...
Download it and Unzip it...
2.Now we have to move this to workstation.
3.Download winscp tool
https://winscp.net/eng/download.php
4.Install it and open...
5.See how to upload chef-repo to workstation.
6.Take the dns name of instance.
7.left side i have my local machine
right side i have the workstation...
8.Move chef-repo to rightside.
9.Now create one cookbook with recipe...Inside cookbooks only.
10.Let's add some webserver code here.
package 'httpd' do
action :install
end

file '\var\www\html\index.html'
content 'this content is from webserver'
action :create
end

service 'httpd' do
action [:enable,:start]
end

11.now check the syntax is ok or not.
let's see that error.
12.Done now will download the chef server and install it.
https://downloads.chef.io/chef-server/
13.knife ssl check also done...
14.Now apply that webfile to see webserver in browser.
Web server is running..
15.Now will create two nodes with auto chef-client connection...
16.now bootstrap two nodes to chef server.
bootstrap --ssh-user ec2-user --sudo -i cef.pem -N node1
17.LET'S RESOLVE THIS ERROR.
inside chef-repo place your chef account .pem file
and also copy the keypair .pem file.
18.Now add node 2 also
19.Now add run_list to nodes.
knife node run_list set node1 "recipe[test-cookbook::test-recipe]"
20.Now upload the cookbook to the chef server.
21.Will see the nodes in web browser.

Now all are working...Now will modify the content and see...

we have to upload the cookbook again. will have to wait for 1 min...for changes
and also run the sudo chef-client -zr "recipe[test-cookbook::test-recipe]"

main chefworkstation and node both are updated...Node 2 is not updated lets see

all the machines are working now...automate chef-client not working...
will fix it now.

Now i will change the web content once again for chef-client automation
in both nodes.

Main workstation updated.Now node1 will have to wait in 1 min.
Crontab editing is not correct will fix it.

will modify final time and see changes.Done upto now...

Will see how to add roles to the nodes and automate...in the next video...

Chef Server Roles - Add roles to Nodes | Chef delete commands | Chef automation tutorial
#Chef #Chef Tutorial For Beginners #Chef books #Chef Devops #Chef automation
   • Chef Server Roles - Add roles to Nodes | C...  

Chef Server Installation - Bootstrap to Nodes | SSH Errors fixed | Automate Chef - Client (Cronjob)
#Chef #Chef Tutorial For Beginners #Chef books #Chef Devops #Chef automation
   • Chef Tutorial - Bootstrap to Nodes Automat...  

Chef Intallation Error Fixed | AWS Tutorial For Beginners with Devops | Devops tutorial
#Chef #Chef Tutorial For Beginners #Chef books #Chef Devops #Chef automation
   • Chef Tutorial -Chef Intallation Error Fixe...  

Ohai Commands, Create User & Group | Run All Cookbook Recipes at a time | Chef Tutorial Part - 2
#Chef #Chef Tutorial For Beginners #Chef books #Chef Devops #Chef automation
   • Create User Group | Run All Cookbook Recip...  

Install Chef and Create Cookbook with recipe | Deploying Apache Web server | Devops Chef Tutorial
#Chef #Chef Tutorial For Beginners #Chef books #Chef Devops #Chef automation
   • Install Chef and Create Cookbook with reci...  

thanks for watching...let's subscribe to this channel...