Chef frequently used commands collection


To run single recipe using chef-solo

To run the single reciepe in same machine

> chef-apply hello.rb

To generate the cookbook standard structure

To generate the template file in cookbook

To run the cookbook in local mode

To download the cookbooks from market place

To Upload the cookbooks to chef server

To bootstrap a nodes

To see the list of nodes

To edit the node run list

To see the info about each nodes

Run the cooksbooks on nodes

To add the run list to the nodes.

Rajesh Kumar
Total Page Visits: 139 - Today Page Visits: 2