Explain the extra commands in the Chef-server

Chef extra commands

• To upload all cookbooks to chef-server in one go

knife cookbook upload --all  

• To deal with multiple resources at a time

['httpd', 'mariadb-server', 'unzip', 'git', 'vim'].each do |p|
package p do
 action :install
 end
end

%w(httpd mariadb-server unzip git vim).each do |p|
package p do
 action :install
 end
end

Leave a Reply

Your email address will not be published.