Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Chef

Upload the cookbook

From the bastion:

knife cookbook upload <insert cookbook name> -d

Troubleshooting the cookbook run

On the ec2 instance:

sudo chef-client -j /etc/chef/init.json

Troubleshooting steps:

Alternatively:

sudo tail /var/log/chef/client.log

Chef Commands

To list the nodes:

knife node list

To display details of one node:

knife node show _node_name_

Chef Server Status

knife status

Chef Data Bags

knife data bag list
knife data bag show _bag_name_