- From: Jeff Blaine <
>
- To:
- Subject: [chef] Re: How to change run time interval for chef-client which is set up as a service on Windows node?
- Date: Sat, 27 Dec 2014 18:02:06 -0500
On 12/25/2014 8:48 AM,
wrote:
>
Hi guys,
>
>
I have configured chef-client (windows platform) on my nodes to be
>
run as a service.
>
>
Using chef-service-manager util from CMD.
>
>
Now I would like to change run interval from 1800 seconds to 900 ro
>
any other value.
>
>
I downloaded chef-client cookbook and created recipe as follow:
>
>
node.default["chef_client"]["interval"] = '900'
>
>
node.default["chef_client"]["splay"] = '100'
>
>
I included chef-client cookbook in my cookbooks’s metadata.rb file
>
as follow:
>
>
Depends ‘chef-client’
>
>
Just for changing those values.
>
>
But it doesn’t seem to take any affect.
>
>
What I am doing wrong?
The 'depend' line is 1 step of 2. You need to also call the appropriate
chef-client cookbook recipe from your cookbook. Just a 'depend' in the
metadata of your cookbook does not trigger any action on the node.
--
Jeff Blaine
kickflop.net
PGP/GnuPG Key ID: 0x0C8EDD02
Archive powered by MHonArc 2.6.16.