Questions - 1

What if I change the file in node Manually and then run the chef cookbooks?


Questions - 2

How to include another recipe in cookbook apart from default?


Questions - 3

How to generate the detailed log with Chef-apply?


Questions - 4

How to generate the detailed log with Chef-client?


Questions - 5

How to generate the detailed log with knife?


How to disable SSL in chef?

Solution

unset https_proxy
OR
# To Fix the Certificate issues
knife ssl fetch https://172.28.3.133
export https_proxy=https://172.28.1.12:9991/
OR
scp /var/opt/opscode/nginx/ca/172.28.3.139.crt root@172.28.3.127:/root/Surendra/chef-repo/.chef/trusted_certs/

What is node object in Chef?

Please read it here - http://www.scmgalaxy.com/tutorials/chef-node-objects-defined/


What is location of node object in Chef node?

It is only stored in memory.You can extract it yourself via something like:


file Chef::Config[:file_cache_path] + "/node.json" do
  content Chef::JSONCompat.to_json_pretty(node.to_hash)
end

Can I view the node objects directly on Chef server? are the json files just stored on the Chef Server's file system?

Can I view the node objects directly on Chef server? are the json files just stored on the Chef Server's file system?


How do I get all node objects from chef server in the form of json?


$ knife search '*:*' --format=json
$ knife download nodes/

Avail Rajesh Kumar as trainer at 50% Discount
Puppet Online Training
Puppet Classroom TrainingEnroll Now