How to run the chef client periodically in Node

HI Everyone,

Can anyone tell how to configure the chef client to run periodically against node.

In my case. I have a build . Once the build get updated i want to run the chef client and update into latest version . So how can we meet this .

you can run the chef-client in daemon mode, which has a default 30 mins delay between 2 runs and can be changed

chef-client -d -i 3600

your recipe should not take any action if build is not updated, so each chef-client run would be kind of dry and performs action only when build is updated. I believe you know more about guards e.g. only_if, not_if

Thank you Anil. It is very helpful for mr