- From: Simon Detheridge <
>
- To:
- Subject: [chef] How do I change 'interval' and 'splay' using chef-dk on Windows
- Date: Thu, 20 Nov 2014 17:08:17 +0000 (GMT)
So, I'm bootstrapping a Windows node with 'knife bootstrap windows' using
chef-dk
Chef is using the windows_service init recipe. I've set chef_client/interval
and chef_client/splay as default attributes.
I can't find how to apply these to the Windows service. As far as I can tell,
the service is looking at c:\chef\client.rb for its settings. However, if I
ensure these are written into a file in client.d, Bad Things happen when I
run chef-client::config because my bootstrapping chef decides it's going to
act like a daemon and never terminates once the chef run finishes.
If I skip running the config recipe, the setting is ignored because a
client.rb isn't written that includes stuff in client.d. If I manually write
out a new client.rb using a different cookbook (probably not recommended)
there's no way to restart the chef service to reload it. (It doesn't support
restart. Can't use net stop/start as it waits for the bootstrapping chef to
exit before stopping, so there's no way to restart it again.)
Am I missing a trick, somewhere?
Thanks,
--
Simon Detheridge - CTO, Widgit Software
26 Queen Street, Cubbington, CV32 7NA - Tel: +44 (0)1926 333680
- [chef] How do I change 'interval' and 'splay' using chef-dk on Windows, Simon Detheridge, 11/20/2014
Archive powered by MHonArc 2.6.16.