what is the best way to run chef-client in specific intervals
Asked Answered
T

3

8

Currently I am using open source chef and having number of nodes chef client is installed. I want the chef client to run in specific intervals. Any good cookbooks out there to configure it.

Trooper answered 26/2, 2014 at 9:19 Comment(0)
L
13

Yes, the official chef-client cookbook.

That's precisely one of the main points of using this cookbook.

If you just include the chef-client::default on your nodes' run_lists, it's going to run every 30 minutes. If you want something different, it's just a matter of adjusting node["chef_client"]["interval"] -- note that this is in seconds, and the default is 1800.

The cookbook's readme file lists all tuneable attributes.

Lift answered 26/2, 2014 at 15:4 Comment(1)
if not mentored any of these chef-client::default & node["chef_client"]["interval"] . Then what will be the interval ?Uproarious
C
1

The Chef client.rb file exposes the interval attribute:

interval The frequency (in seconds) at which the chef-client runs. Default value: 1800.

Chafe answered 30/10, 2014 at 23:54 Comment(0)
B
-2

Would it not be a good fit to use something like cron or Windows Task Scheduler for this?

Bary answered 26/2, 2014 at 14:23 Comment(1)
The chef-client cookbook has those options too.Kingfisher

© 2022 - 2024 — McMap. All rights reserved.