Anirudh describes Chef as having three main components:
1.) Work station: This is the developer's machine will be used to author cookbooks and recipes and upload them to the chef-server using the command line utility called knife.The author provides eight steps for the basic introduction element of the Chef series. I've briefly summarized the eight steps below, but you will need to see the full introduction for detailed procedure.
2.) Chef-Server: This is the main server on which all the cookbooks, roles, policies are uploaded.
3.) Node: This is the instance which would be provisioned by applying the cookbooks uploaded on the chef-server.
Apart from these, there are few basic build blocks of chef like cookbooks,recipes,roles,environemts,run-lists,policies etc. The complete documentation and architecture of chef can be found here.
- Set up the workstation by installing Chef.
- Register on Chef's site and set up hosted Chef.
- Download and install chef-repo.
- Setup a node with a cloud provider and bootstrap any instance.
- Download a cookbook (a unit of configuration and policy distribution).
- Update the cookbook and upload it to the server node.
- Apply the run-list to the node.
- Run the Chef client on the node.