Skip to end of metadata
Go to start of metadata




The Chef Client is where almost all of the work in Chef is done.

It communicates with the Chef Server via REST, authenticates via Signed Header Authentication, and compiles and executes Cookbooks.

Clients do work for one or many Nodes

A Chef Client does work on behalf of a Node. A single Chef Client can run recipes for multiple Nodes.

Clients do all the work

Clients are where all the action happens - the Chef Server and Chef Indexer are largely services that exist only to provide the Client with information.

You can run the client periodically

If you want, you can run the Chef Client as a persistent daemon. To do this, make your startup script for the chef client execute something like:

Chef Client Interval and Splay

The -i option provides an Interval - it's how often the Chef client will attempt to wake up and Converge this Node. The -s option is the Splay - a random piece of time added to the interval, which helps avoid the thundering herd problem.



Anatomy of a Chef Run

Anatomy of a Chef Run describes the process taken by the Chef Client to configure an individual Node in detail.


Chef-Client Cookbook

The Opscode chef-client cookbook is available for use on systems that should have a `chef-client` daemon running, such as when Knife bootstrap was used to install Chef on a new system.

It includes the interval set at 1800 seconds and the splay set at 20 seconds, as configurable defaults, and additional configurable detail information as detailed on this page.

The entire set of options available can be found with the incantation:

Chef Client Option List

The JSON_ATTRIBS can be a run_list and used to specify roles and/or recipes to add to the node.

Chef-Client Configuration Settings

Chef Configuration Settings has detail on the configuration settings available for chef-client, and all the Chef executables.







Evaluate and Run Resources at Compile Time


Chef Solo



Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.