Managing client.rb via chef

I’m looking to update some parameters in client.rb. I’d like to do this
using chef, but did not see any examples of this during my searching of the
interwebs.

I know I could create a template in a cookbook and have that be that, but
wanted to know if there are any caveats or complexities for this.


Dylan Northrup

Le 2014-02-26 18:14, Dylan Northrup a écrit :

I’m looking to update some parameters in client.rb. I’d like to do this using chef, but did not see any examples of this during my searching of the interwebs.

I know I could create a template in a cookbook and have that be that, but wanted to know if there are any caveats or complexities for this.


Dylan Northrup

You should have a look at the chef-client cookbook which does exactly
that (and some more)

Here: http://community.opscode.com/cookbooks/chef-client

Regards,

Tensibai

Hi there,

I am in a similar need where I don’t have any specific parameter to change but the client.rb is not the same on some chef nodes. I like to create template and manage client.rb so it is consistent on all chef nodes. Are there any caveats with this approach.

SGL

I’d recommend either just using the chef-client cookbook or at least reading it to get a handle on possible gotchas: https://github.com/chef-cookbooks/chef-client