Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chef Lec 22 - Coggle Diagram
Chef Lec 22
delete cookbooks
from chef server
knife cookbook delete [cookbook]
delete nodes from
chef server
knife node delete [node_name]
delete chef-clients
from chef-server
knife client delete [client_name]
delete role from
chef-server
knife role delete [role_name]
See already-made
node, cookbook, client
or role on chef-server
knife [object] list
Make a file
for role in
chef-repo/roles
vi [role_name].rb
name "devops"
description "web server"
run_list "recipe[[cookbook]::[recipe]]",
"recipe[[cookbook]::[recipe]]"
Only put notebook to
run all recipes of it
Upload role on
chef-server
knife role from file roles/[role_name].rb
connect node
to the role
knife node run_list set [node_name] "role[role_name]"
show runlist
of a node
knife node show [node_name]
Ruby code for
installing multiple
packages using
for each loop
%w(httpd mariadb-server wnzip git vim)
.each do |p|
package p do
action :install
end
end
Clients with same name
as node are created
while bootstraping the
nodes from workstation
Now you will upload
roles to the chef-server
as well as cookbooks
Use instance private IP
for connection with node
and use DNS for WinSCP