Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chef Lec 21 - Coggle Diagram
Chef Lec 21
Enable Node to
automatically apply
recipe specified by
the server
Open and edit /etc/crontab
file in vi editor
Append
* * * * * root chef-client
Stars show the default
automatic time to fetch update
For each new node
Update advanced details,
Run bootstrapping through
workstation and run command:
"knife node run_list" pink one
Apply specified
recipe to node
chef-client
Orange step should be completed first. Now
This step will be performed by logging into node
Chef-server
architecture
workstation,
chef-server,
manage.chef.io,
bootstrap
Create an account
on manage.chef.io
for chef-server
You have to make
different organizations
for managing different
types of servers
Download starter kit,
which connects workstation
to the chef server
starter kit
chef-repo
Put this folder in
both server and
workstation machines
Future all work
will be performed
in this folder
Verification of
installation
knife ssl check
Create Nodes and
connect with
the chef server
Node should be
started with these
advanced details
#!/bin/bash
sudo su
yum update -y
echo "
* root chef-client"
>> /etc/crontab
For Bootstraping
using workstation
knife bootstrap
[ipaddress of node]
--ssh-user ec2-user
--sudo -i node-key.pem
-N [node_name]
download the .pem
file of the node in the
chef-repo folder using
WinSCP
check connected nodes
knife node list
Upload cookbook
to server
knife cookbook upload
[cookbook_name]
check uploaded
cookbooks
knife cookbook list
Apply specific recipe
to specific Node after
uploading cookbook
to chef-server
knife node run_list
set [node_name]
"recipe[[cookobook]::[recipe]]"
Check applied recipes
knife node show [node_name]
Now you will use cookbooks
folder under the chef-repo dir